1

Try to gracefully stop all existing goroutines

This commit is contained in:
2019-01-09 16:06:47 +04:00
parent f240def745
commit 86ddbb26f8
2 changed files with 47 additions and 46 deletions

View File

@@ -73,6 +73,9 @@ func Authenticate() {
func Connect() {
go func() {
announcesv1.ZookeeperReceiver(client)
<-c.ShutdownDone
return
}()
rawUpdates := client.GetRawUpdatesChannel(100)
log.Debug().Msg("Connection with Telegram established")