mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +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,19 +431,15 @@ export class PeerCall implements IDisposable {
|
||||
log.refDetached(timeoutLog);
|
||||
// don't await this, as it would block other negotationneeded events from being processed
|
||||
// as they are processed serially
|
||||
try {
|
||||
await timeoutLog.run(async log => {
|
||||
await this.delay(CALL_TIMEOUT_MS);
|
||||
try { 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
|
||||
if (this._state === CallState.InviteSent) {
|
||||
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