Browse Source

rTorrent: also send `d.delete_tied` when removing torrent and data

pull/655/head
Brian Witt 2 years ago
parent
commit
59ea78c331
  1. 2
      app/src/main/java/org/transdroid/daemon/adapters/rTorrent/RTorrentAdapter.java

2
app/src/main/java/org/transdroid/daemon/adapters/rTorrent/RTorrentAdapter.java

@ -219,6 +219,8 @@ public class RTorrentAdapter implements IDaemonAdapter { @@ -219,6 +219,8 @@ public class RTorrentAdapter implements IDaemonAdapter {
if (removeTask.includingData()) {
makeRtorrentCall(log, "d.custom5.set",
new String[]{task.getTargetTorrent().getUniqueID(), "1"});
makeRtorrentCall(log, "d.delete_tied",
new String[]{task.getTargetTorrent().getUniqueID()});
}
makeRtorrentCall(log, "d.erase", new String[]{task.getTargetTorrent().getUniqueID()});
return new DaemonTaskSuccessResult(task);

Loading…
Cancel
Save