diff --git a/src/matrix/net/RequestScheduler.ts b/src/matrix/net/RequestScheduler.ts index cee4142f..276de639 100644 --- a/src/matrix/net/RequestScheduler.ts +++ b/src/matrix/net/RequestScheduler.ts @@ -47,7 +47,7 @@ class Request implements IHomeServerRequest { this._requestResult.abort(); } else { this.responseReject(new AbortError()); - this.responseCodeReject(new AbortError()); + this.responseCodeReject?.(new AbortError()); } }