@powersync/web 0.0.0-dev-20251119142638 → 0.0.0-dev-20251119150914
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/worker/WASQLiteDB.umd.js +3 -6
- package/dist/worker/WASQLiteDB.umd.js.map +1 -1
- package/lib/src/db/adapters/AsyncDatabaseConnection.d.ts +8 -0
- package/lib/src/worker/db/SharedWASQLiteConnection.js +3 -6
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/db/adapters/AsyncDatabaseConnection.ts +8 -0
- package/src/worker/db/SharedWASQLiteConnection.ts +5 -6
|
@@ -16277,12 +16277,9 @@ class SharedWASQLiteConnection {
|
|
|
16277
16277
|
logger.debug(`Close requested from client ${clientId} of ${[...clientIds]}`);
|
|
16278
16278
|
clientIds.delete(clientId);
|
|
16279
16279
|
if (this.activeHoldId) {
|
|
16280
|
-
|
|
16281
|
-
|
|
16282
|
-
|
|
16283
|
-
*/
|
|
16284
|
-
await this.connection.execute('ROLLBACK').catch(() => { });
|
|
16285
|
-
await this.connection.releaseHold(this.activeHoldId).catch(() => { });
|
|
16280
|
+
// We can't cleanup here since we're not in a lock context.
|
|
16281
|
+
// The cleanup will occur once a new hold is acquired.
|
|
16282
|
+
this.logger.info(`Hold ${this.activeHoldId} was still active when the connection was closed. Cleanup will occur once a new hold is acquired.`);
|
|
16286
16283
|
}
|
|
16287
16284
|
if (clientIds.size == 0) {
|
|
16288
16285
|
logger.debug(`Closing connection to ${this.options}.`);
|