Do not register signals in non posix OS
This commit is contained in:
parent
92a6101bbe
commit
bac1a51a4a
1 changed files with 7 additions and 5 deletions
|
|
@ -280,7 +280,9 @@ class Download:
|
|||
|
||||
self.started_time = int(time.time())
|
||||
|
||||
def mark_cancelled(*_):
|
||||
if "posix" == os.name:
|
||||
|
||||
def mark_cancelled(*_) -> None:
|
||||
cls._interrupted = True
|
||||
cls.to_screen("[info] Interrupt received, exiting cleanly...")
|
||||
raise SystemExit(130) # noqa: TRY301
|
||||
|
|
|
|||
Loading…
Reference in a new issue