more dispose

This commit is contained in:
Bruno Windels 2020-09-18 13:11:10 +02:00
parent da780d0aa2
commit 3704de1a26

View file

@ -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();