From 2a04cb1db3ce11b3b24f72412aa6df80df187193 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sun, 17 Nov 2024 22:50:15 +0100 Subject: [PATCH] Try start before unsubscribe --- src/modules/stream_notifications/twitch/webhook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/stream_notifications/twitch/webhook.py b/src/modules/stream_notifications/twitch/webhook.py index 80b0e8d..a141470 100644 --- a/src/modules/stream_notifications/twitch/webhook.py +++ b/src/modules/stream_notifications/twitch/webhook.py @@ -71,13 +71,13 @@ class TwitchService: streamers = await StreamerConfigRepository.all() try: + eventsub.start() + logger.info("Unsubscribe from all events...") await eventsub.unsubscribe_all() await sleep(5) logger.info("Unsubscribe from all events done") - eventsub.start() - logger.info("Subscribe to events...") await gather( *[self.subscribe_to_streamer(eventsub, streamer) for streamer in streamers]