From d4d3cc422b809d17daa18966ac95a852fc3045a5 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 4 Mar 2020 17:44:22 +0100 Subject: Improve exiting (actually it was Mattermost that was creating a deadlock) --- connector/mattermost/mattermost.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connector/mattermost') 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) -- cgit v1.2.3