so I read into the source code of readable stream in fs and I can see that 
destroy() calls close() in the end but it does not support any callback. it 
seems to me that calling close() on the stream and passing in a callback is 
much safer because I can continue when the stream is really closed. so I am 
speculating that this is the cause of the issue because in my program flow I am 
opening the same file more than once. 

any reason why destroy() exists and is not just replaced with close()? or any 
reason why destroy() does not allow me to pass in a callback?

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to