mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-19 04:17:44 +00:00
fix(play): fixes ep null issue (#1233)
* fix(play): fixes ep null issue * chore(play): fixing formatting * chore(play): update syntax * chore(play): updates * fix(play): updated fix * fix(play): updated fix --------- Co-authored-by: rsreerama3 <rsreerama3@gatech.edu>
This commit is contained in:
@@ -48,7 +48,7 @@ class TaskPlay extends Task {
|
||||
*/
|
||||
ep.once('playback-start', (evt) => {
|
||||
this.logger.debug({evt}, 'Play got playback-start');
|
||||
this.cs.stickyEventEmitter.once('uuid_break', (t) => {
|
||||
this.cs.stickyEventEmitter?.once('uuid_break', (t) => {
|
||||
if (t?.taskId === this.taskId) {
|
||||
this.logger.debug(`Play got kill-playback, executing uuid_break, taskId: ${t?.taskId}`);
|
||||
this.ep.api('uuid_break', this.ep.uuid).catch((err) => this.logger.info(err, 'Error killing audio'));
|
||||
|
||||
Reference in New Issue
Block a user