os-js / osjs-server

OS.js Server Module
https://manual.os-js.org
Other
19 stars 21 forks source link

fix(vfs): race condition on temp file cleanup #77

Closed andersevenrud closed 8 months ago

andersevenrud commented 8 months ago

There was a race condition relating to streams in the VFS pipeline that could lead to unhandled rejection whenever a cleanup is performed on an endpoint with pre-check errors (like readonly).

Fixes https://github.com/os-js/OS.js/issues/840

andersevenrud commented 8 months ago

@maryam4s26 could you try this PR and checks if this fixes your errors in https://github.com/os-js/OS.js/issues/840 ?

maryam4s26 commented 8 months ago

@maryam4s26 could you try this PR and checks if this fixes your errors in os-js/OS.js#840 ?

hi @andersevenrud I checked this PR. it is ok.