From 58b3dcd13ff912e6568be11265eadec9d96e4f74 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Sat, 28 Dec 2024 10:06:32 +0000 Subject: [PATCH] fix: set timer to be use daemon thread --- supabase_auth/timer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/supabase_auth/timer.py b/supabase_auth/timer.py index 60095c20..11f11536 100644 --- a/supabase_auth/timer.py +++ b/supabase_auth/timer.py @@ -28,6 +28,7 @@ def cleanup(_): self._task.add_done_callback(cleanup) else: self._timer = _Timer(self._milliseconds / 1000, self._function) + self._timer.daemon = True self._timer.start() def cancel(self) -> None: