Message on hanging interruption

This commit is contained in:
Ruben van de Ven 2019-04-24 11:43:17 +02:00
parent 2708f22b80
commit 67d45fadbd
1 changed files with 2 additions and 1 deletions

View File

@ -309,7 +309,7 @@ class CommandHandler(object):
if duration is not None:
t = threading.Timer(duration+3, self.checkPopen, (msgId,))
t.start()
self.playPopen = subprocess.Popen(
playCmd, stdout=subprocess.PIPE, env=environment_vars)
self.sendMessage({
@ -353,6 +353,7 @@ class CommandHandler(object):
return
# prevent a lock of the story, no repeat or anything for now
logger.warning("Interrupting playback after timeout")
self.playPopen.terminate()
def cmdStop(self, msgId):