Skip to content

Commit

Permalink
Revert "On Windows use SIGBREAK to break client"
Browse files Browse the repository at this point in the history
This reverts commit f5fda51.
  • Loading branch information
miguelgrinberg committed Nov 28, 2020
1 parent 7adee09 commit 788cf86
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions engineio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ def __init__(self,
global original_signal_handler
if original_signal_handler is None and \
threading.current_thread() == threading.main_thread():
if not hasattr(signal, 'SIGBREAK'):
sig = signal.SIGINT
else: # pragma: no cover
sig = signal.SIGBREAK
original_signal_handler = signal.signal(sig, signal_handler)
original_signal_handler = signal.signal(signal.SIGINT,
signal_handler)
self.handlers = {}
self.base_url = None
self.transports = None
Expand Down

0 comments on commit 788cf86

Please sign in to comment.