diff --git a/src/IndexedDB.ts b/src/IndexedDB.ts index b5ca23f..759922a 100644 --- a/src/IndexedDB.ts +++ b/src/IndexedDB.ts @@ -154,7 +154,10 @@ async function testAvailability(idbFactory: IDBFactory): Promise { try { const req = idbFactory.open('__zenfs_test'); - await wrap(req); + const db = await wrap(req); + // Make sure the test db gets closed so that other zenfs instances in other workers don't get blocked + db.close(); + return true; } catch { return false;