Skip to content

Commit

Permalink
fix: set timer to be use daemon thread (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks authored Dec 30, 2024
1 parent 4926bd5 commit 98de380
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions supabase_auth/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 98de380

Please sign in to comment.