only wait if needed
This commit is contained in:
parent
48ab30a370
commit
a76aa855a3
@ -174,8 +174,10 @@ class driver(screenDriver):
|
|||||||
# anything else? wait for completion
|
# anything else? wait for completion
|
||||||
while True:
|
while True:
|
||||||
screenContent = dirtyContent
|
screenContent = dirtyContent
|
||||||
|
r,_,_ select.select([vcsu[currScreen]],[],[],0.07)
|
||||||
|
if not vcsa[currScreen] in r:
|
||||||
|
break
|
||||||
vcsa[currScreen].seek(0)
|
vcsa[currScreen].seek(0)
|
||||||
time.sleep(0.03)
|
|
||||||
dirtyContent = vcsa[currScreen].read()
|
dirtyContent = vcsa[currScreen].read()
|
||||||
if screenContent == dirtyContent:
|
if screenContent == dirtyContent:
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user