Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/js/Controllers/TTSController.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ class TTSController {

this.listener.send(RpcFactory.TTSStartedNotification());
this.playNext();
if(!rpc.params.speakType.includes('ALERT'))
this.timers[rpc.id] = setInterval(this.onResetTimeout, 9000, rpc.params.appID, "TTS.Speak");
this.timers[rpc.id] = setInterval(this.onResetTimeout, 9000, rpc.id);
Copy link
Collaborator

@iCollin iCollin Sep 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.timers[rpc.id] = setInterval(this.onResetTimeout, 9000, rpc.id);
if(!rpc.params.speakType.includes('ALERT'))
this.timers[rpc.id] = setInterval(this.onResetTimeout, 9000, rpc.id);

#444 (comment)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YuriiYefimenko we have closed #444, can you please make adjustments to ensure onResetTimeout is not sent when the TTS Speak is part of an Alert or AlertManeuver or apply the above suggestion? Thank you!

return null;
case "StopSpeaking":
if (this.currentlyPlaying) {
Expand Down