Restore accidentally deleted polling
This commit is contained in:
parent
2073263c07
commit
77df83250f
@ -75,6 +75,8 @@ class Connection:
|
|||||||
return ''
|
return ''
|
||||||
|
|
||||||
def receive(self, char=None):
|
def receive(self, char=None):
|
||||||
|
while len(select.select([self.socket], [], [], 0.1)[0]) == 0:
|
||||||
|
self.poll()
|
||||||
f = self.socket.makefile()
|
f = self.socket.makefile()
|
||||||
try:
|
try:
|
||||||
return bdecode(f)
|
return bdecode(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user