PaulSonOfLars / gotgbot

Autogenerated Go wrapper for the telegram API. Inspired by the python-telegram-bot library.
MIT License
442 stars 105 forks source link

Improve concurrent safety #127

Closed PaulSonOfLars closed 7 months ago

PaulSonOfLars commented 7 months ago

What

Fix panics due to writes on closed channels reported in the support chat.

This was caused by a previous refactor which removed a write to the closing channel in favour of simply closing the channel. It has now been improved to be thread safe on both polling and webhooks.

Impact