From c23c50c4454b773f462f3d9dc22aec5f92f244c8 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Thu, 3 Mar 2022 20:19:25 +0100 Subject: [PATCH] Always stop watching when switching to IDLE --- twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index 1a0df87..ddc29f0 100644 --- a/twitch.py +++ b/twitch.py @@ -177,6 +177,7 @@ class Twitch: self.change_state(State.INVENTORY_FETCH) while True: if self._state is State.IDLE: + self.stop_watching() # clear the flag and wait until it's set again self._state_change.clear() elif self._state is State.INVENTORY_FETCH: @@ -363,7 +364,6 @@ class Twitch: self._state_change.clear() break else: - self.stop_watching() self.gui.print( f"No suitable channel to watch for game: {self.game}\n" "Waiting for an ONLINE channel..."