Skip to content

magnet links download code is broken in latest version #297

@aldenml

Description

@aldenml

@aldenml
Hi. Everything is great except for one thing: my magnet links download code is broken:

java.lang.RuntimeException: invalid torrent handle used [libtorrent:20]
	at org.libtorrent4j.swig.libtorrent_jni.torrent_handle_resume(Native Method)
	at org.libtorrent4j.swig.torrent_handle.resume(torrent_handle.java:180)
	at org.proninyaroslav.libretorrent.core.model.session.TorrentSessionImpl.fetchMagnet(TorrentSessionImpl.java:477)
	... 12 more

Code:
https://github.com/proninyaroslav/libretorrent/blob/35bffbf874c0c4553f3ca751a0e3d76cb5c91c81/app/src/main/java/org/proninyaroslav/libretorrent/core/model/session/TorrentSessionImpl.java#L477

Overall, adding works if I remove resume(), but I get a perpetual progress bar in the preview dialog because I don't get the SAVE_RESUME_DATA alert.

Originally posted by @proninyaroslav in #290 (comment)

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