mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
don't assume setting up a session went all the way through when stopping
This commit is contained in:
parent
a1ba5d7dba
commit
e751333bbd
@ -237,10 +237,16 @@ export class SessionContainer {
|
||||
}
|
||||
|
||||
stop() {
|
||||
this._reconnectSubscription();
|
||||
this._reconnectSubscription = null;
|
||||
this._sync.stop();
|
||||
this._session.stop();
|
||||
if (this._reconnectSubscription) {
|
||||
this._reconnectSubscription();
|
||||
this._reconnectSubscription = null;
|
||||
}
|
||||
if (this._sync) {
|
||||
this._sync.stop();
|
||||
}
|
||||
if (this._session) {
|
||||
this._session.stop();
|
||||
}
|
||||
if (this._waitForFirstSyncHandle) {
|
||||
this._waitForFirstSyncHandle.dispose();
|
||||
this._waitForFirstSyncHandle = null;
|
||||
|
Loading…
Reference in New Issue
Block a user