mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
now that the dom handler uses an error boundary, don't need this anymore
This commit is contained in:
parent
496dfee593
commit
7114428b23
@ -431,18 +431,14 @@ export class PeerCall implements IDisposable {
|
|||||||
log.refDetached(timeoutLog);
|
log.refDetached(timeoutLog);
|
||||||
// don't await this, as it would block other negotationneeded events from being processed
|
// don't await this, as it would block other negotationneeded events from being processed
|
||||||
// as they are processed serially
|
// as they are processed serially
|
||||||
try {
|
await timeoutLog.run(async log => {
|
||||||
await timeoutLog.run(async log => {
|
try { await this.delay(CALL_TIMEOUT_MS); }
|
||||||
await this.delay(CALL_TIMEOUT_MS);
|
catch (err) { return; } // return when delay is cancelled by throwing an AbortError
|
||||||
// @ts-ignore TS doesn't take the await above into account to know that the state could have changed in between
|
// @ts-ignore TS doesn't take the await above into account to know that the state could have changed in between
|
||||||
if (this._state === CallState.InviteSent) {
|
if (this._state === CallState.InviteSent) {
|
||||||
await this._hangup(CallErrorCode.InviteTimeout, log);
|
await this._hangup(CallErrorCode.InviteTimeout, log);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
catch (e) {
|
|
||||||
// prevent error from being unhandled, it will be logged already by run above
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user