Skip to content

Commit

Permalink
try to fix #24
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Oct 11, 2013
1 parent 38c0bf1 commit 31c5a41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Multiplexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ def pollRegister(self, fd):

def pollUnregister(self, fd):
fileno = self.socketToFileno[fd]
self.poller.unregister(fileno)
del self.socketToFileno[fd]
del self.filenoToSocket[fileno]
self.poller.unregister(fileno)

def pollSetoutput(self, fd, ready):
if not fd in self.socketToFileno: return
Expand Down Expand Up @@ -158,4 +158,5 @@ def __init__(self):
elif 'epoll' in dir():
BestMultiplexer = EpollMultiplexer
elif 'poll' in dir():
BestMultiplexer = PollMultiplexer
BestMultiplexer = PollMultiplexer

0 comments on commit 31c5a41

Please sign in to comment.