diff options
author | Wim <wim@42.be> | 2016-11-23 23:51:51 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2016-11-23 23:51:51 +0100 |
commit | 20c04f7977a359bd31c172bb79a92ab59efef070 (patch) | |
tree | f9fcf9d7d285dd461e9d54f77ccbd59f2807befe /bridge/gitter/gitter.go | |
parent | 571f50d734514b23aff1cf0c4564a751ac2b86ce (diff) | |
download | matterbridge-msglm-20c04f7977a359bd31c172bb79a92ab59efef070.tar.gz matterbridge-msglm-20c04f7977a359bd31c172bb79a92ab59efef070.tar.bz2 matterbridge-msglm-20c04f7977a359bd31c172bb79a92ab59efef070.zip |
Fix loop because of closed channel. Fixes #89
Diffstat (limited to 'bridge/gitter/gitter.go')
-rw-r--r-- | bridge/gitter/gitter.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go index 95375b1f..ffc5e93f 100644 --- a/bridge/gitter/gitter.go +++ b/bridge/gitter/gitter.go @@ -65,8 +65,7 @@ func (b *Bgitter) JoinChannel(channel string) error { go b.c.Listen(stream) go func(stream *gitter.Stream, room string) { - for { - event := <-stream.Event + for event := range stream.Event { switch ev := event.Data.(type) { case *gitter.MessageReceived: // check for ZWSP to see if it's not an echo |