Skip to content

Commit 7668d39

Browse files
committed
don't try to call fileno() if the socket is not in a good state anymore. fd is already available in the loop, use it. This will prevent Lawouach#150
1 parent 5f96eab commit 7668d39

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

ws4py/manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ def run(self):
325325
logger.error("Terminating websocket %s due to exception: %s in once method" % (format_addresses(ws), repr(e)) )
326326
if not x:
327327
with self.lock:
328-
fd = ws.sock.fileno()
329328
self.websockets.pop(fd, None)
330329
self.poller.unregister(fd)
331330

0 commit comments

Comments
 (0)