summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bridge/slack/slack.go4
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
}