Comments
This commit is contained in:
parent
f628ee2ef0
commit
c46f282139
1 changed files with 3 additions and 0 deletions
|
@ -79,8 +79,11 @@ class MatrixClientPeg {
|
||||||
console.log("Loading history from IndexedDB.");
|
console.log("Loading history from IndexedDB.");
|
||||||
promise = this.matrixClient.store.startup();
|
promise = this.matrixClient.store.startup();
|
||||||
}
|
}
|
||||||
|
// log any errors when starting up the database
|
||||||
promise.catch((err) => { console.error(err); });
|
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(() => {
|
promise.finally(() => {
|
||||||
this.get().startClient(opts);
|
this.get().startClient(opts);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue