diff --git a/src/modules/stream_notifications/twitch/webhook.py b/src/modules/stream_notifications/twitch/webhook.py index f1c113c..fc02fe5 100644 --- a/src/modules/stream_notifications/twitch/webhook.py +++ b/src/modules/stream_notifications/twitch/webhook.py @@ -84,7 +84,9 @@ class TwitchService: while True: await sleep(0.1) finally: + await eventsub.unsubscribe_all_known() await eventsub.stop() + await self.twitch.close() raise RuntimeError("Twitch service stopped")