Possibly faster check for sentinel.
This commit is contained in:
+1
-1
@@ -150,7 +150,7 @@ class Node( object ):
|
|||||||
# Wait for prompt
|
# Wait for prompt
|
||||||
while True:
|
while True:
|
||||||
data = self.read( 1024 )
|
data = self.read( 1024 )
|
||||||
if chr( 127 ) in data:
|
if data[ -1 ] == chr( 127 ):
|
||||||
break
|
break
|
||||||
self.pollOut.poll()
|
self.pollOut.poll()
|
||||||
self.waiting = False
|
self.waiting = False
|
||||||
|
|||||||
Reference in New Issue
Block a user