From dfdb45df30f14d72cf4543b5b2121ad6f82745fe Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 11 Mar 2018 21:33:14 +0100 Subject: [PATCH] Update vendor 42wim/mm-go-irckit --- vendor/github.com/42wim/mm-go-irckit/slackuser.go | 7 ++++++- vendor/manifest | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/vendor/github.com/42wim/mm-go-irckit/slackuser.go b/vendor/github.com/42wim/mm-go-irckit/slackuser.go index 28db8f67..4bfef3af 100644 --- a/vendor/github.com/42wim/mm-go-irckit/slackuser.go +++ b/vendor/github.com/42wim/mm-go-irckit/slackuser.go @@ -21,8 +21,13 @@ func (u *User) loginToSlack() (*slack.Client, error) { u.susers = make(map[string]slack.User) go u.rtm.ManageConnection() go u.handleSlack() - time.Sleep(time.Second * 2) + //time.Sleep(time.Second * 2) u.sinfo = u.rtm.GetInfo() + for u.sinfo == nil { + time.Sleep(time.Millisecond * 500) + logger.Debug("still waiting for sinfo") + u.sinfo = u.rtm.GetInfo() + } u.addSlackUsersToChannels() return u.sc, nil } diff --git a/vendor/manifest b/vendor/manifest index 8500ab9b..c7751f72 100644 --- a/vendor/manifest +++ b/vendor/manifest @@ -14,7 +14,7 @@ "importpath": "github.com/42wim/mm-go-irckit", "repository": "https://github.com/42wim/mm-go-irckit", "vcs": "git", - "revision": "7451d00fe4935457b55a0695e5e1836a275924b1", + "revision": "5c61e63a36e59c7611e0b34d1999f3491f934d35", "branch": "master", "notests": true },