ensure callback is only called once
This commit is contained in:
1 parent
80e7b91a70
commit
514266d48a
1 file changed
+1
-4
@@ -128,10 +128,7 @@ export async function streamExtractExternal(
|
||||
if (!createdDirectories.has(path.dirname(fullPath))) {
|
||||
createdDirectories.add(path.dirname(fullPath))
|
||||
await resolveOrCreateDirectory(path.dirname(fullPath)).then(
|
||||
() => {
|
||||
entry.autodrain()
|
||||
callback()
|
||||
}
|
||||
() => {}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user