From f7f32ac80677c5e0388ca33b84d0d35e9cf68c62 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 4 Feb 2022 17:39:52 +0530 Subject: [PATCH] responseCodeReject may not exist --- src/matrix/net/RequestScheduler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }