aboutsummaryrefslogtreecommitdiff
path: root/connector/mattermost
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-03-04 17:44:22 +0100
committerAlex Auvolat <alex@adnab.me>2020-03-04 17:44:22 +0100
commitd4d3cc422b809d17daa18966ac95a852fc3045a5 (patch)
treee54ee18524568902b3d183a61d83d603ca78f6ab /connector/mattermost
parentdf1f2d38b3e5d31827bf1d07fa63d5eaed6bc682 (diff)
downloadeasybridge-d4d3cc422b809d17daa18966ac95a852fc3045a5.tar.gz
easybridge-d4d3cc422b809d17daa18966ac95a852fc3045a5.zip
Improve exiting (actually it was Mattermost that was creating a deadlock)
Diffstat (limited to 'connector/mattermost')
-rw-r--r--connector/mattermost/mattermost.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/connector/mattermost/mattermost.go b/connector/mattermost/mattermost.go
index 0a632a9..ea49fd2 100644
--- a/connector/mattermost/mattermost.go
+++ b/connector/mattermost/mattermost.go
@@ -59,7 +59,7 @@ func (mm *Mattermost) Configure(c Configuration) error {
}
// Reinitialize shared data structures
- mm.handlerStopChan = make(chan bool)
+ mm.handlerStopChan = make(chan bool, 1)
mm.caches.mmusers = make(map[string]string)
mm.caches.sentjoined = make(map[string]bool)