diff --git a/src/modules/stream_notifications/twitch/webhook.py b/src/modules/stream_notifications/twitch/webhook.py index a141470..81c289c 100644 --- a/src/modules/stream_notifications/twitch/webhook.py +++ b/src/modules/stream_notifications/twitch/webhook.py @@ -87,9 +87,11 @@ class TwitchService: while True: await sleep(0.1) finally: - await eventsub.unsubscribe_all_known() + await eventsub.unsubscribe_all() await eventsub.stop() + await sleep(10) + await self.twitch.close() raise RuntimeError("Twitch service stopped")