mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
don't run afterSyncCompleted when there was an error
This commit is contained in:
parent
afb9ae4391
commit
09cb39b553
@ -100,6 +100,7 @@ export class Sync {
|
|||||||
this._status.set(SyncStatus.Stopped);
|
this._status.set(SyncStatus.Stopped);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!this._error) {
|
||||||
try {
|
try {
|
||||||
await this._session.afterSyncCompleted();
|
await this._session.afterSyncCompleted();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@ -108,6 +109,7 @@ export class Sync {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async _syncRequest(syncToken, timeout) {
|
async _syncRequest(syncToken, timeout) {
|
||||||
let {syncFilterId} = this._session;
|
let {syncFilterId} = this._session;
|
||||||
|
Loading…
Reference in New Issue
Block a user