mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't run afterSyncCompleted when there was an error
This commit is contained in:
parent
afb9ae4391
commit
09cb39b553
@ -100,11 +100,13 @@ export class Sync {
|
|||||||
this._status.set(SyncStatus.Stopped);
|
this._status.set(SyncStatus.Stopped);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
if (!this._error) {
|
||||||
await this._session.afterSyncCompleted();
|
try {
|
||||||
} catch (err) {
|
await this._session.afterSyncCompleted();
|
||||||
console.err("error during after sync completed, continuing to sync.", err.stack);
|
} catch (err) {
|
||||||
// swallowing error here apart from logging
|
console.err("error during after sync completed, continuing to sync.", err.stack);
|
||||||
|
// swallowing error here apart from logging
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user