diff --git a/src/crypto/OutgoingRoomKeyRequestManager.js b/src/crypto/OutgoingRoomKeyRequestManager.js index 2a769c901..d9ac431a0 100644 --- a/src/crypto/OutgoingRoomKeyRequestManager.js +++ b/src/crypto/OutgoingRoomKeyRequestManager.js @@ -96,6 +96,7 @@ export default class OutgoingRoomKeyRequestManager { * Called when the client is stopped. Stops any running background processes. */ stop() { + console.log('stopping OutgoingRoomKeyRequestManager'); // stop the timer on the next run this._clientRunning = false; } @@ -229,6 +230,12 @@ export default class OutgoingRoomKeyRequestManager { this._sendOutgoingRoomKeyRequests().finally(() => { this._sendOutgoingRoomKeyRequestsRunning = false; + }).catch((e) => { + // this should only happen if there is an indexeddb error, + // in which case we're a bit stuffed anyway. + console.warn( + `error in OutgoingRoomKeyRequestManager: ${e}`, + ); }).done(); }; diff --git a/src/crypto/store/indexeddb-crypto-store.js b/src/crypto/store/indexeddb-crypto-store.js index b167cdf4b..cee27a5ff 100644 --- a/src/crypto/store/indexeddb-crypto-store.js +++ b/src/crypto/store/indexeddb-crypto-store.js @@ -91,9 +91,11 @@ export default class IndexedDBCryptoStore { // attempts to delete the database will block (and subsequent // attempts to re-create it will also block). db.onversionchange = (ev) => { + console.log(`versionchange for indexeddb ${this._dbName}: closing`); db.close(); }; + console.log(`connected to indexeddb ${this._dbName}`); resolve(db); }; });