Skip to content

Commit 4804531

Browse files
Code cleanup
1 parent 1ddf6be commit 4804531

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/web/src/db/adapters/WorkerWrappedAsyncDatabaseConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class WorkerWrappedAsyncDatabaseConnection<Config extends ResolvedWebSQLO
6969
}
7070

7171
isAutoCommit(): Promise<boolean> {
72-
return this.baseConnection.isAutoCommit();
72+
return this.withRemote(() => this.baseConnection.isAutoCommit());
7373
}
7474

7575
private withRemote<T>(workerPromise: () => Promise<T>): Promise<T> {

packages/web/src/worker/db/SharedWASQLiteConnection.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export class SharedWASQLiteConnection implements AsyncDatabaseConnection {
9696
const connection = this.connection;
9797
dbMap.delete(dbFilename);
9898
await connection.close();
99+
return;
99100
}
100101
logger.debug(`Connection to ${dbFilename} not closed yet due to active clients.`);
101102
return;

0 commit comments

Comments
 (0)