We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6652a1a + cf05819 commit 1d8b3b2Copy full SHA for 1d8b3b2
src/examples/AccessHandlePoolVFS.js
@@ -368,8 +368,6 @@ export class AccessHandlePoolVFS extends VFS.Base {
368
// This OPFS file doesn't represent any SQLite file so it doesn't
369
// need to keep any data.
370
accessHandle.truncate(HEADER_OFFSET_DATA);
371
-
372
- this.#mapPathToAccessHandle.delete(path);
373
this.#availableAccessHandles.add(accessHandle);
374
}
375
@@ -420,6 +418,7 @@ export class AccessHandlePoolVFS extends VFS.Base {
420
418
const accessHandle = this.#mapPathToAccessHandle.get(path);
421
419
if (accessHandle) {
422
// Un-associate the SQLite path from the OPFS file.
+ this.#mapPathToAccessHandle.delete(path);
423
this.#setAssociatedPath(accessHandle, '', 0);
424
425
0 commit comments