Fix another lock after first received update
This commit is contained in:
parent
f2dc39b2d7
commit
3c9390a295
@ -24,6 +24,7 @@ func ZookeeperReceiver(client *tdlib.Client) {
|
||||
receiver := client.AddEventReceiver(&tdlib.UpdateNewMessage{}, fwMessagesFilter, 5)
|
||||
log.Debug().Msg("Receiver added")
|
||||
|
||||
go func() {
|
||||
for newMsg := range receiver.Chan {
|
||||
updateMsg := (newMsg).(*tdlib.UpdateNewMessage)
|
||||
// Check if message text contains needed battle data
|
||||
@ -70,8 +71,9 @@ func ZookeeperReceiver(client *tdlib.Client) {
|
||||
log.Error().Err(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<-c.ShutdownDone
|
||||
return
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
Reference in New Issue
Block a user