aldenml / libtorrent4j

libtorrent for java, a swig Java interface for libtorrent
http://libtorrent4j.org
Other
219 stars 31 forks source link

Start a task with Resume file take too much time #224

Closed Jason-wam closed 1 year ago

Jason-wam commented 2 years ago

When start a task with a Resume file,sometimes it take too much time (Occasionally even more than 20 seconds)。 but i don't know why it happens。

session.download(torrentInfo, downloadFile, resumeFile, selection.toTypedArray(), null, flags)

Thanks for this library!

471448446 commented 2 years ago

检查下SessionManager.start()调用了没有

Jason-wam commented 2 years ago

调用了的,是存在延迟启动完毕吗

aldenml commented 2 years ago

@Jason-wam can you start the session with logging = true?

Jason-wam commented 1 year ago

I solved it with session.swig().async_add_torrent(addTorrentParams),thanks for your attention