Skip to content

Commit

Permalink
Using new fixed semantic of flag_use_resume_save_path.
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Feb 26, 2015
1 parent 988e634 commit b1188f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/frostwire/jlibtorrent/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,8 @@ private TorrentHandle addTorrentSupport(TorrentInfo ti, File saveDir, Priority[]
try {
byte[] data = Utils.readFileToByteArray(resumeFile);
p.setResume_data(Vectors.bytes2char_vector(data));

flags |= add_torrent_params.flags_t.flag_use_resume_save_path.swigValue();
} catch (Throwable e) {
LOG.warn("Unable to set resume data", e);
}
Expand Down

0 comments on commit b1188f6

Please sign in to comment.