Skip to content

Commit eaa4b4f

Browse files
committed
Add threading type condition for win32session daemon
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
1 parent 1f0a839 commit eaa4b4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Furious/Utility/Win32Session.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ def off(self) -> bool:
4949
import win32session
5050

5151
if win32session.off():
52-
self._daemonThread.join()
52+
if isinstance(self._daemonThread, threading.Thread):
53+
self._daemonThread.join()
54+
5355
# Reset it
5456
self._daemonThread = None
5557

0 commit comments

Comments
 (0)