From 946de66f52adc6ab55740af5675d29e805c7a6c1 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sat, 17 Aug 2024 12:34:07 +0100 Subject: [PATCH] Ensure we clear the reactivate flag Otherwise a user can pause any time they like but they can never leave --- matchy/state.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matchy/state.py b/matchy/state.py index 2d8c468..00a0ce0 100644 --- a/matchy/state.py +++ b/matchy/state.py @@ -308,6 +308,7 @@ class State(): # Check if we've gone past the reactivation time and re-activate if reactivate and datetime.now() > ts_to_datetime(reactivate): channel[_Key.ACTIVE] = True + del channel[_Key.REACTIVATE] def get_active_match_tasks(self, time: datetime | None = None) -> Generator[str, int]: """