Send kill instead of terminate when quiting play command on client

This commit is contained in:
Ruben van de Ven 2019-11-08 10:55:44 +01:00
parent a325b0482a
commit 09dd9d52f4

View file

@ -289,7 +289,7 @@ class CommandHandler(object):
if self.playPopen: if self.playPopen:
logger.info("Interrupting playback of {}".format(self.playingMsgId)) logger.info("Interrupting playback of {}".format(self.playingMsgId))
self.playPopen.terminate() self.playPopen.kill()
err = None err = None
if file is None and text is None: if file is None and text is None:
@ -366,7 +366,7 @@ class CommandHandler(object):
# 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.critical("Interrupting playback after timeout: {}".format(self.playingMsgId)) logger.critical("Interrupting playback after timeout: {}".format(self.playingMsgId))
self.playPopen.terminate() self.playPopen.kill()
def cmdStop(self, msgId): def cmdStop(self, msgId):
if self.playPopen and self.playingMsgId == msgId: if self.playPopen and self.playingMsgId == msgId: