We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6630097 commit bbfdcf7Copy full SHA for bbfdcf7
packages/web/src/worker/db/opfs.ts
@@ -275,10 +275,9 @@ export class OPFSCoopSyncVFS extends FacadeVFS {
275
this.mapIdToFile.delete(fileId);
276
277
if (file?.flags & VFS.SQLITE_OPEN_MAIN_DB) {
278
- // Release this either way
279
- // if (file.persistentFile?.handleLockReleaser) {
280
- this.#releaseAccessHandle(file);
281
- // }
+ if (file.persistentFile?.accessHandle) {
+ this.#releaseAccessHandle(file);
+ }
282
} else if (file?.flags & VFS.SQLITE_OPEN_DELETEONCLOSE) {
283
file.accessHandle.truncate(0);
284
this.accessiblePaths.delete(file.path);
0 commit comments