Message on hanging interruption
This commit is contained in:
parent
2708f22b80
commit
67d45fadbd
1 changed files with 2 additions and 1 deletions
|
@ -309,7 +309,7 @@ class CommandHandler(object):
|
||||||
if duration is not None:
|
if duration is not None:
|
||||||
t = threading.Timer(duration+3, self.checkPopen, (msgId,))
|
t = threading.Timer(duration+3, self.checkPopen, (msgId,))
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
self.playPopen = subprocess.Popen(
|
self.playPopen = subprocess.Popen(
|
||||||
playCmd, stdout=subprocess.PIPE, env=environment_vars)
|
playCmd, stdout=subprocess.PIPE, env=environment_vars)
|
||||||
self.sendMessage({
|
self.sendMessage({
|
||||||
|
@ -353,6 +353,7 @@ class CommandHandler(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
# prevent a lock of the story, no repeat or anything for now
|
# prevent a lock of the story, no repeat or anything for now
|
||||||
|
logger.warning("Interrupting playback after timeout")
|
||||||
self.playPopen.terminate()
|
self.playPopen.terminate()
|
||||||
|
|
||||||
def cmdStop(self, msgId):
|
def cmdStop(self, msgId):
|
||||||
|
|
Loading…
Reference in a new issue