Skip to content

Commit

Permalink
Merge pull request tucnak#560 from osinniy/patch-1
Browse files Browse the repository at this point in the history
Change Webhook.Poll log behaviour
  • Loading branch information
demget authored Mar 9, 2023
2 parents 92739f1 + c2b50e8 commit fbd35f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (h *Webhook) getParams() map[string]string {

func (h *Webhook) Poll(b *Bot, dest chan Update, stop chan struct{}) {
if err := b.SetWebhook(h); err != nil {
b.debug(err)
b.OnError(err, nil)
close(stop)
return
}
Expand Down

0 comments on commit fbd35f2

Please sign in to comment.