Closed giacomocerquone closed 8 years ago
Did you fix this? :)
I don't think it was actually a problem of the library but a strange behaviour. In fact calling engine.remove the file were deleted but the swarm continued to download stuff (and I didn't even know where this stuff were downloaded). So I fixed this calling engine.destroy() for first and engine.remove() right after.
PS = and the callback should be specified that is not facultative, if you don't put it, the error specified above will return.
Oh okay. I guess .remove should call .destroy for you. If you wanna PR that I'd merge it.
Ok, give me some time please because I would like also to check that callback and make it an optional paramater if it is ok for you.
Sounds good
On Sun, Nov 8, 2015 at 2:34 AM Giacomo Cerquone notifications@github.com wrote:
Ok, give me some time please because I would like also to check that callback and make it an optional paramater if it is ok for you.
— Reply to this email directly or view it on GitHub https://github.com/mafintosh/torrent-stream/issues/143#issuecomment-154802332 .
Hello, so I'm trying to call engine.remove() once the engine is created and it's downloading but it won't work. I tried to call it with:
and it returns:
I tried also
or
and nothing happens, like I've never called this method. Is it possible that something is wrong there in the library? Thank you :)