From 3704de1a260ad5af6add7c1dbbaf85629d5d7d24 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 18 Sep 2020 13:11:10 +0200 Subject: [PATCH] more dispose --- src/matrix/SessionContainer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/SessionContainer.js b/src/matrix/SessionContainer.js index 458e4c06..0de70400 100644 --- a/src/matrix/SessionContainer.js +++ b/src/matrix/SessionContainer.js @@ -246,7 +246,7 @@ export class SessionContainer { return this._reconnector; } - stop() { + dispose() { if (this._reconnectSubscription) { this._reconnectSubscription(); this._reconnectSubscription = null; @@ -255,7 +255,7 @@ export class SessionContainer { this._sync.stop(); } if (this._session) { - this._session.stop(); + this._session.dispose(); } if (this._waitForFirstSyncHandle) { this._waitForFirstSyncHandle.dispose();