Send kill instead of terminate when quiting play command on client
This commit is contained in:
parent
a325b0482a
commit
09dd9d52f4
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue