Fix lock after first received update
This commit is contained in:
parent
86ddbb26f8
commit
f2dc39b2d7
@ -81,9 +81,6 @@ func Connect() {
|
|||||||
log.Debug().Msg("Connection with Telegram established")
|
log.Debug().Msg("Connection with Telegram established")
|
||||||
for update := range rawUpdates {
|
for update := range rawUpdates {
|
||||||
log.Debug().Msgf("Update of type %s received", update.Data["@type"])
|
log.Debug().Msgf("Update of type %s received", update.Data["@type"])
|
||||||
|
|
||||||
<-c.ShutdownDone
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user