Closed chase26091 closed 10 years ago
It does disconnect from the peers and stops all network and disk activity (after the destroy
callback has fired). What do you mean by releasing the saved data? If you want to delete the files, you should call remove
.
Thank you, i was just making sure to avoid from underlying leak or what not. I mean't releasing the data left in the stream if destroy is called while the stream is holding information.
I'm utilizing the read stream to pipe data down to a lame mp3 decoder then to the speakers. Im using the read streams destroy() function when done listening to the file, is this releasing the saved data and disconnecting from peers?