mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
more dispose
This commit is contained in:
parent
da780d0aa2
commit
3704de1a26
@ -246,7 +246,7 @@ export class SessionContainer {
|
|||||||
return this._reconnector;
|
return this._reconnector;
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
dispose() {
|
||||||
if (this._reconnectSubscription) {
|
if (this._reconnectSubscription) {
|
||||||
this._reconnectSubscription();
|
this._reconnectSubscription();
|
||||||
this._reconnectSubscription = null;
|
this._reconnectSubscription = null;
|
||||||
@ -255,7 +255,7 @@ export class SessionContainer {
|
|||||||
this._sync.stop();
|
this._sync.stop();
|
||||||
}
|
}
|
||||||
if (this._session) {
|
if (this._session) {
|
||||||
this._session.stop();
|
this._session.dispose();
|
||||||
}
|
}
|
||||||
if (this._waitForFirstSyncHandle) {
|
if (this._waitForFirstSyncHandle) {
|
||||||
this._waitForFirstSyncHandle.dispose();
|
this._waitForFirstSyncHandle.dispose();
|
||||||
|
Loading…
Reference in New Issue
Block a user