From 248cf8676872d5af7e7ed187b66a3c187c7113d0 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sun, 17 Nov 2024 22:48:40 +0100 Subject: [PATCH] Fix --- src/modules/stream_notifications/twitch/webhook.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/stream_notifications/twitch/webhook.py b/src/modules/stream_notifications/twitch/webhook.py index fc02fe5..80b0e8d 100644 --- a/src/modules/stream_notifications/twitch/webhook.py +++ b/src/modules/stream_notifications/twitch/webhook.py @@ -71,7 +71,10 @@ class TwitchService: streamers = await StreamerConfigRepository.all() try: + logger.info("Unsubscribe from all events...") await eventsub.unsubscribe_all() + await sleep(5) + logger.info("Unsubscribe from all events done") eventsub.start()