Possibly faster check for sentinel.

This commit is contained in:
Bob Lantz
2014-07-01 18:04:44 -07:00
parent 355696f3dd
commit 771850b9cf
+1 -1
View File
@@ -150,7 +150,7 @@ class Node( object ):
# Wait for prompt
while True:
data = self.read( 1024 )
if chr( 127 ) in data:
if data[ -1 ] == chr( 127 ):
break
self.pollOut.poll()
self.waiting = False