diff --git a/service/platform/index.js b/service/platform/index.js index 1e7c6fcd..3b678c67 100644 --- a/service/platform/index.js +++ b/service/platform/index.js @@ -183,8 +183,10 @@ class Player extends events.EventEmitter { } async stop() { - if (this._child) + if (this._child) { + this.emit('stopChain'); // emitted when stop is called, lets agent know to stop playing current audio and all subsequent audios this._child.kill(); + } } }