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

View file

@ -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):