Skip to content

Commit

Permalink
fix: Don't check SIGHUP on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankja1n authored and andrewjaykeller committed Apr 23, 2024
1 parent 3dc72dd commit 531c8d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neurosity/neurosity.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import firebase
import signal
import os
from platform import system

from .config import FirebaseConfig

Expand All @@ -24,7 +25,8 @@ def __init__(self, options):
# register a signal handler for Forced Terminal Kills
signal.signal(signal.SIGTERM, self.exit_handler)
signal.signal(signal.SIGINT, self.exit_handler)
signal.signal(signal.SIGHUP, self.exit_handler)
if system() != "Windows":
signal.signal(signal.SIGHUP, self.exit_handler)

def exit_handler(self, signum=None, frame=None):
self.remove_client()
Expand Down

0 comments on commit 531c8d4

Please sign in to comment.