Skip to content

Commit

Permalink
fix: improved arguments to endless sleep call
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Aug 16, 2022
1 parent 744c8d2 commit fa27df4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aw_qt/main.py
Expand Up @@ -4,6 +4,7 @@
import subprocess
import platform
import signal
import threading
from typing import Optional
from time import sleep

Expand Down Expand Up @@ -88,9 +89,9 @@ def main(
else:
# wait for signal to quit
if sys.platform == "win32":
# Windows doesn't support signals, so we just wait for the app to quit
# Windows doesn't support signals, so we just sleep until interrupted
try:
sleep(1000 * 24 * 60 * 60) # Sleep for 1000 days, or until interrupted
sleep(threading.TIMEOUT_MAX)
except KeyboardInterrupt:
pass
else:
Expand Down

0 comments on commit fa27df4

Please sign in to comment.