summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-02-14 21:12:02 +0100
committerWim <wim@42.be>2017-02-14 21:12:02 +0100
commit163f55f9c27e9e8a75774424d22598799e8306c6 (patch)
tree5c84a9443dfce24d98b4bd466f066efa8faae211 /bridge/mattermost
parent2d16fd085e91eb31264f7ff6e8cce76f79f0445b (diff)
downloadmatterbridge-msglm-163f55f9c27e9e8a75774424d22598799e8306c6.tar.gz
matterbridge-msglm-163f55f9c27e9e8a75774424d22598799e8306c6.tar.bz2
matterbridge-msglm-163f55f9c27e9e8a75774424d22598799e8306c6.zip
Refactor to handle disconnects/reconnects better.
Now try to reconnect every 60 seconds until forever.
Diffstat (limited to 'bridge/mattermost')
-rw-r--r--bridge/mattermost/mattermost.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index e2bf228d..126bab43 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -77,6 +77,10 @@ func (b *Bmattermost) Connect() error {
return nil
}
+func (b *Bmattermost) Disconnect() error {
+ return nil
+}
+
func (b *Bmattermost) JoinChannel(channel string) error {
// we can only join channels using the API
if b.Config.UseAPI {