Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion UXTU4Linux/Assets/Modules/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,10 @@ def _loop_body(self, args: str, mode: str, interval: int, dynamic: bool) -> None

def _stop_loop(self) -> None:
self._stop_evt.set()
with self._lock:
interval = self._interval
if self._loop_thread and self._loop_thread.is_alive():
self._loop_thread.join(timeout=self._interval + 2)
self._loop_thread.join(timeout=interval + 2)

def apply_preset_state_once(self, state: PresetState) -> str:
return self._apply_once(state.args, state.mode, log=True)
Expand Down
Loading