Update ptyDriver.py

This commit is contained in:
chrys87 2018-05-30 13:15:50 +02:00 committed by GitHub
parent c79cf97d2b
commit 4dc71060a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,14 +84,14 @@ class driver(screenDriver):
fdList = [fd]
if interruptFd:
fdList += [interruptFd]
hasmore = True
while hasmore:
r, hasmore =screen_utils.hasMoreWaht(fdList,0.01):
while True:
r = screen_utils.hasMoreWaht(fdList,0.1):
hasmore = fd in r
if not hasmore:
break
# exit on stuff like input available
# exit on interrupt available
if interruptFd in r:
break
break
if (time.time() - starttime) >= timeout:
break
data = os.read(fd, 4096)