summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-04-15 23:28:47 +0200
committerWim <wim@42.be>2019-04-15 23:28:47 +0200
commit380c38674c19d741b344c627a2db7f8f34d223d3 (patch)
tree4aadc5a15158bc96c8c18d1d47d46ba6359fba11 /bridge
parent3c14a0891e7304b9daa80ba0533474c49c11a29e (diff)
downloadmatterbridge-msglm-380c38674c19d741b344c627a2db7f8f34d223d3.tar.gz
matterbridge-msglm-380c38674c19d741b344c627a2db7f8f34d223d3.tar.bz2
matterbridge-msglm-380c38674c19d741b344c627a2db7f8f34d223d3.zip
Fix deadlock on reconnect (irc). Closes #757
Diffstat (limited to 'bridge')
-rw-r--r--bridge/irc/handlers.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/bridge/irc/handlers.go b/bridge/irc/handlers.go
index ce4f0445..1d260071 100644
--- a/bridge/irc/handlers.go
+++ b/bridge/irc/handlers.go
@@ -156,7 +156,10 @@ func (b *Birc) handleOtherAuth(client *girc.Client, event girc.Event) {
b.handleNickServ()
b.handleRunCommands()
// we are now fully connected
- b.connected <- nil
+ // only send on first connection
+ if b.FirstConnection {
+ b.connected <- nil
+ }
}
func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) {