From c3dfdde6267f3397f61a4e9b2e854638a93c5c2e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 28 Oct 2021 12:04:42 +0200 Subject: [PATCH] be forgiving when dispose has already been called --- src/matrix/Session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 13dbc128..87c7481c 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -377,7 +377,7 @@ export class Session { this._olmWorker = undefined; this._sessionBackup?.dispose(); this._sessionBackup = undefined; - this._megolmDecryption.dispose(); + this._megolmDecryption?.dispose(); this._megolmDecryption = undefined; this._e2eeAccount?.dispose(); this._e2eeAccount = undefined;