diff --git a/neurosity/neurosity.py b/neurosity/neurosity.py index 3f9bd72..9d11cac 100644 --- a/neurosity/neurosity.py +++ b/neurosity/neurosity.py @@ -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):