summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-01-24 21:51:52 +0100
committerWim <wim@42.be>2019-01-24 21:51:52 +0100
commit8548b69e6ec3b36521c6881a5d2bcb133012b6d9 (patch)
treede38be22e0392c216f02eaf842ac36233cc989c4 /bridge
parente3cb665d9213a5cdc970eb8ad4db54ccb8c2cd4a (diff)
downloadmatterbridge-msglm-8548b69e6ec3b36521c6881a5d2bcb133012b6d9.tar.gz
matterbridge-msglm-8548b69e6ec3b36521c6881a5d2bcb133012b6d9.tar.bz2
matterbridge-msglm-8548b69e6ec3b36521c6881a5d2bcb133012b6d9.zip
Fix possible data race (irc). Closes #693
Diffstat (limited to 'bridge')
-rw-r--r--bridge/irc/irc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index cad0bdf8..e134fdad 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -85,10 +85,10 @@ func (b *Birc) Connect() error {
i.Handlers.Add(girc.RPL_WELCOME, b.handleNewConnection)
i.Handlers.Add(girc.RPL_ENDOFMOTD, b.handleOtherAuth)
i.Handlers.Add(girc.ALL_EVENTS, b.handleOther)
+ b.i = i
go b.doConnect()
- b.i = i
err = <-b.connected
if err != nil {
return fmt.Errorf("connection failed %s", err)