Restore accidentally deleted polling

This commit is contained in:
Tim Pope 2014-01-07 19:26:23 -05:00
parent 2073263c07
commit 77df83250f

View File

@ -75,6 +75,8 @@ class Connection:
return ''
def receive(self, char=None):
while len(select.select([self.socket], [], [], 0.1)[0]) == 0:
self.poll()
f = self.socket.makefile()
try:
return bdecode(f)