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:
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue