diff options
author | Wim <wim@42.be> | 2016-10-25 23:29:32 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-10-25 23:29:32 +0200 |
commit | e7107cf782d64b63fe5d1fc1440754cbfee5c55e (patch) | |
tree | 4b8dbd5969871e807befc7fc7233e5bf44359f15 /bridge/slack/slack.go | |
parent | b7c918a1958f67833c785537bd019db839bb6f3c (diff) | |
download | matterbridge-msglm-e7107cf782d64b63fe5d1fc1440754cbfee5c55e.tar.gz matterbridge-msglm-e7107cf782d64b63fe5d1fc1440754cbfee5c55e.tar.bz2 matterbridge-msglm-e7107cf782d64b63fe5d1fc1440754cbfee5c55e.zip |
Use RTM only on API (slack). Fix #56
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r-- | bridge/slack/slack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 62cb04b7..5c28172c 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -56,10 +56,10 @@ func (b *Bslack) Connect() error { matterhook.Config{BindAddress: b.Config.BindAddress}) } else { b.sc = slack.New(b.Config.Token) + b.rtm = b.sc.NewRTM() + go b.rtm.ManageConnection() } flog.Info("Connection succeeded") - b.rtm = b.sc.NewRTM() - go b.rtm.ManageConnection() go b.handleSlack() return nil } |