@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.
@@ -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
- * The hold hasn't been released, but we're closing now.
16282
- * We can proactively cleanup and release the hold.
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}.`);