X-Git-Url: http://git.onelab.eu/?p=pcucontrol.git;a=blobdiff_plain;f=pcucontrol%2Ftransports%2Fpyssh%2Fnbpipe.py;fp=pcucontrol%2Ftransports%2Fpyssh%2Fnbpipe.py;h=8683779e88840b1d3b312f7b984362b64eac7754;hp=08b4f973cc43782e1b85a1cdeb0337d4d1911c1f;hb=92a440abf55d26097cbb93ce2caf9fc4a9374313;hpb=0dcdc23769191b843716096f97b14b8e06362643 diff --git a/pcucontrol/transports/pyssh/nbpipe.py b/pcucontrol/transports/pyssh/nbpipe.py index 08b4f97..8683779 100644 --- a/pcucontrol/transports/pyssh/nbpipe.py +++ b/pcucontrol/transports/pyssh/nbpipe.py @@ -46,7 +46,7 @@ class nbpipe: item = os.read(self.fd, self.blocksize) except (IOError, OSError): finish = 1 - if (item == '') or finish: + if finish or (item == ''): # Wait until everything has been read from the queue before # setting eof = 1 and exiting. while not self._q.empty():