Skip to content

Commit

Permalink
fix: Add Windows check to exit_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankja1n authored and andrewjaykeller committed Apr 23, 2024
1 parent 531c8d4 commit 4063c7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neurosity/neurosity.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def exit_handler(self, signum=None, frame=None):
self.remove_all_subscriptions()
signal.signal(signal.SIGTERM, signal.SIG_DFL)
signal.signal(signal.SIGINT, signal.SIG_DFL)
signal.signal(signal.SIGHUP, signal.SIG_DFL)
if system() != "Windows":
signal.signal(signal.SIGHUP, signal.SIG_DFL)
os.kill(os.getpid(), signal.SIGTERM)

def get_server_timestamp(self):
Expand Down

0 comments on commit 4063c7e

Please sign in to comment.