fix(frontend-assist): handling connection close fix
This commit is contained in:
parent
8f92709696
commit
e6926a195f
1 changed files with 2 additions and 2 deletions
|
|
@ -204,7 +204,7 @@ export default class AssistManager {
|
|||
});
|
||||
|
||||
const intervalID = setInterval(() => {
|
||||
if (!conn.open && getState().calling !== CallingState.Requesting) {
|
||||
if (!conn.open) {
|
||||
this.md.setMessagesLoading(true);
|
||||
this.assistentCallEnd();
|
||||
update({ peerConnectionStatus: ConnectionStatus.Disconnected })
|
||||
|
|
@ -312,7 +312,7 @@ export default class AssistManager {
|
|||
});
|
||||
|
||||
const intervalID = setInterval(() => {
|
||||
if (!call.open) {
|
||||
if (!call.open && getState().calling !== CallingState.Requesting) {
|
||||
this.onCallEnd?.();
|
||||
clearInterval(intervalID);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue