1
0
Fork 0

ensure callback is only called once

pull/1670/head
bethanyj28 2024-02-26 09:36:35 -05:00
parent 88f7a7bc65
commit 902046e4d8
1 changed files with 1 additions and 4 deletions

View File

@ -128,10 +128,7 @@ export async function streamExtractExternal(
if (!createdDirectories.has(path.dirname(fullPath))) { if (!createdDirectories.has(path.dirname(fullPath))) {
createdDirectories.add(path.dirname(fullPath)) createdDirectories.add(path.dirname(fullPath))
await resolveOrCreateDirectory(path.dirname(fullPath)).then( await resolveOrCreateDirectory(path.dirname(fullPath)).then(
() => { () => {}
entry.autodrain()
callback()
}
) )
} }