diff --git a/pupy/network/lib/streams/PupySocketStream.py b/pupy/network/lib/streams/PupySocketStream.py index 33c043ff..5df843cb 100644 --- a/pupy/network/lib/streams/PupySocketStream.py +++ b/pupy/network/lib/streams/PupySocketStream.py @@ -73,7 +73,7 @@ class PupySocketStream(SocketStream): self.buf_in.write(BYTES_LITERAL(buf)) def poll(self, timeout): - return len(self.upstream)>0 or super(PupySocketStream, self).poll(timeout) + return super(PupySocketStream, self).poll(timeout) or len(self.upstream)>0 def sock_poll(self, timeout): return super(PupySocketStream, self).poll(timeout) @@ -88,7 +88,7 @@ class PupySocketStream(SocketStream): if len(self.upstream)>=count: return self.upstream.read(count) while len(self.upstream)