Skip to content

Commit bbfdcf7

Browse files
revert opfs test
1 parent 6630097 commit bbfdcf7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,9 @@ export class OPFSCoopSyncVFS extends FacadeVFS {
275275
this.mapIdToFile.delete(fileId);
276276

277277
if (file?.flags & VFS.SQLITE_OPEN_MAIN_DB) {
278-
// Release this either way
279-
// if (file.persistentFile?.handleLockReleaser) {
280-
this.#releaseAccessHandle(file);
281-
// }
278+
if (file.persistentFile?.accessHandle) {
279+
this.#releaseAccessHandle(file);
280+
}
282281
} else if (file?.flags & VFS.SQLITE_OPEN_DELETEONCLOSE) {
283282
file.accessHandle.truncate(0);
284283
this.accessiblePaths.delete(file.path);

0 commit comments

Comments
 (0)