decrease timeout
This commit is contained in:
parent
743e5edfb2
commit
48fe891ac2
@ -102,7 +102,6 @@ class driver(screenDriver):
|
|||||||
fdList += [fd]
|
fdList += [fd]
|
||||||
if interruptFd:
|
if interruptFd:
|
||||||
fdList += [interruptFd]
|
fdList += [interruptFd]
|
||||||
starttime = time.time()
|
|
||||||
while True:
|
while True:
|
||||||
# respect timeout but wait a little bit of time to see if something more is here
|
# respect timeout but wait a little bit of time to see if something more is here
|
||||||
if (time.time() - starttime) >= timeout:
|
if (time.time() - starttime) >= timeout:
|
||||||
@ -182,7 +181,7 @@ class driver(screenDriver):
|
|||||||
# output
|
# output
|
||||||
if self.p_out in r:
|
if self.p_out in r:
|
||||||
try:
|
try:
|
||||||
msgBytes = self.readAll(self.p_out.fileno(), timeout=0.1, interruptFd=sys.stdin)
|
msgBytes = self.readAll(self.p_out.fileno(), timeout=0.001, interruptFd=sys.stdin)
|
||||||
except (EOFError, OSError):
|
except (EOFError, OSError):
|
||||||
active.value = False
|
active.value = False
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user