Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion notifier/nf_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ def step( sleep = True, external = True ):
# handle sockets
if fds:
for fd, condition in fds:
sock_obj = __sock_objects[ fd ]
try:
sock_obj = __sock_objects[ fd ]
except KeyError:
continue # ignore recently removed socket (by timer in this step() call)
# check for closed pipes/sockets
if condition in ( select.POLLHUP, select.POLLNVAL ):
socket_remove( sock_obj, IO_ALL )
Expand Down