fix interrupted speech

This commit is contained in:
chrys 2016-07-13 10:37:05 +02:00
parent 7d6e1008a5
commit d6e8c5857b
2 changed files with 2 additions and 14 deletions

View File

@ -4,7 +4,8 @@ class command():
def __init__(self):
pass
def run(self, environment):
environment['runtime']['speechDriver'].cancel()
if environment['screenData']['newDelta'] != environment['screenData']['oldDelta']:
environment['runtime']['speechDriver'].cancel()
return environment
def setCallback(self, callback):
pass

View File

@ -1,13 +0,0 @@
#!/bin/python
class command():
def __init__(self):
pass
def run(self, environment):
if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
environment['runtime']['speechDriver'].cancel()
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass