Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uperror handling w/ duplicate torrents #348
Comments
This comment has been minimized.
This comment has been minimized.
|
You don't need to manually add the torrent to the client when you're seeding - it's handled for you. Can't add an I like the idea of returning the existing torrent instead of failing with an error. Let's do that. |
This comment has been minimized.
This comment has been minimized.
I was hoping you'd say that :) I'm looking through the code. The error is thrown here, in bittorrent-swarm. I believe it can be caught and handled here. I could intercept this error and emit the Instead, I think I'll iterate through |
This comment has been minimized.
This comment has been minimized.
|
PR here #351 |
This comment has been minimized.
This comment has been minimized.
|
Released as 0.49.0. |
Expected output:
Or, less preferably:
Actual output:
Might it be worth adding an
errargument to the callbacks, or just returning an existing torrent when it's already been added/seeded?