1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00
This commit is contained in:
Kegan Dougal
2017-02-10 16:19:39 +00:00
parent f628ee2ef0
commit c46f282139

View File

@@ -79,8 +79,11 @@ class MatrixClientPeg {
console.log("Loading history from IndexedDB.");
promise = this.matrixClient.store.startup();
}
// log any errors when starting up the database
promise.catch((err) => { console.error(err); });
// regardless of errors, start the client. If we did error out, we'll
// just end up doing a full initial /sync.
promise.finally(() => {
this.get().startClient(opts);
});