From 706e70933da04f25dbf2985bc5da4b3002319760 Mon Sep 17 00:00:00 2001 From: Tarcisio Gruppi Date: Sat, 22 Feb 2020 19:13:34 -0300 Subject: [PATCH] Close updates chan on stop --- bot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.go b/bot.go index a996790..019fe19 100644 --- a/bot.go +++ b/bot.go @@ -495,6 +495,7 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) { for { select { case <-bot.shutdownChannel: + close(ch) return default: }