Skip to content

"cb() is not a function" on engine.remove #143

@giacomocerquone

Description

@giacomocerquone

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:

engine.remove()

and it returns:

node_modules\torrent-stream\index.js:718
        cb()
        ^

TypeError: cb is not a function
    at FSReqWrap.oncomplete (C:\Users\...\node_modules\torrent-stream\index.js:718:9)

I tried also

engine.remove([], function() {
    console.log("removed");
});

or

engine.remove(function() {
    console.log("removed");
});

and nothing happens, like I've never called this method. Is it possible that something is wrong there in the library?
Thank you :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions