Commit 8774cb4a authored by Robert Nagy's avatar Robert Nagy Committed by Ruben Bridgewater
Browse files

fs: use finished over destroy w/ cb

destroy w/ is undocumented API which also will cause
a race if the stream is already destroying and potentially
invoking the callback too early and withou error.

PR-URL: https://github.com/nodejs/node/pull/32809


Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarDenys Otrishko <shishugi@gmail.com>
parent 23a4d604
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment