Restore accidentally deleted polling
This commit is contained in:
parent
2073263c07
commit
77df83250f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user