Skip to content

Commit

Permalink
don't try to call fileno() if the socket is not in a good state anymo…
Browse files Browse the repository at this point in the history
…re. fd is already available in the loop, use it. This will prevent #150
  • Loading branch information
tito committed Mar 24, 2017
1 parent 5f96eab commit 7668d39
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ws4py/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ def run(self):
logger.error("Terminating websocket %s due to exception: %s in once method" % (format_addresses(ws), repr(e)) )
if not x:
with self.lock:
fd = ws.sock.fileno()
self.websockets.pop(fd, None)
self.poller.unregister(fd)

Expand Down

0 comments on commit 7668d39

Please sign in to comment.