mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-22 02:32:02 -08:00
Fix loop because of closed channel. Fixes #89
This commit is contained in:
parent
571f50d734
commit
20c04f7977
@ -65,8 +65,7 @@ func (b *Bgitter) JoinChannel(channel string) error {
|
|||||||
go b.c.Listen(stream)
|
go b.c.Listen(stream)
|
||||||
|
|
||||||
go func(stream *gitter.Stream, room string) {
|
go func(stream *gitter.Stream, room string) {
|
||||||
for {
|
for event := range stream.Event {
|
||||||
event := <-stream.Event
|
|
||||||
switch ev := event.Data.(type) {
|
switch ev := event.Data.(type) {
|
||||||
case *gitter.MessageReceived:
|
case *gitter.MessageReceived:
|
||||||
// check for ZWSP to see if it's not an echo
|
// check for ZWSP to see if it's not an echo
|
||||||
|
Loading…
Reference in New Issue
Block a user