mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
087c9a3436
commit
5c22e65469
|
@ -31,6 +31,7 @@ def _waitForKeypress(timeout: int, debug: bool) -> str:
|
||||||
except (IOError, EOFError):
|
except (IOError, EOFError):
|
||||||
if debug:
|
if debug:
|
||||||
print('Keypress Timeout')
|
print('Keypress Timeout')
|
||||||
|
print('Timeout')
|
||||||
return None
|
return None
|
||||||
return keyPress
|
return keyPress
|
||||||
|
|
||||||
|
@ -132,5 +133,5 @@ def runSpeakerClient(baseDir: str, proxyType: str, httpPrefix: str,
|
||||||
prevSay = speakerJson['say']
|
prevSay = speakerJson['say']
|
||||||
|
|
||||||
# wait for a while, or until a key is pressed
|
# wait for a while, or until a key is pressed
|
||||||
if _waitForKeypress(30, debug):
|
if _waitForKeypress(10, debug):
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue