From 48c6b4d072629408cfc3d7a594114c1ce5dbd03b Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Mon, 23 Nov 2015 15:32:31 +0100 Subject: [PATCH] Seems I was wrong in a2a8f1960d4ee2576eff35170508a88cb6b024ac. Actually the problem was in the arguments. Please rTorrent, document! Fixes #251 and fixes #227 again again. --- .../org/transdroid/daemon/Rtorrent/RtorrentAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/transdroid/daemon/Rtorrent/RtorrentAdapter.java b/app/src/main/java/org/transdroid/daemon/Rtorrent/RtorrentAdapter.java index 41ccd0f9..8f11f03e 100644 --- a/app/src/main/java/org/transdroid/daemon/Rtorrent/RtorrentAdapter.java +++ b/app/src/main/java/org/transdroid/daemon/Rtorrent/RtorrentAdapter.java @@ -179,9 +179,9 @@ public class RtorrentAdapter implements IDaemonAdapter { } byte[] bytes = baos.toByteArray(); int size = Math.max(((int) file.length() * 2) + XMLRPC_EXTRA_PADDING, XMLRPC_MINIMUM_SIZE); - if (version >= 907) { - makeRtorrentCall(log, "network.xmlrpc.size_limit.set", new Object[]{size + XMLRPC_EXTRA_PADDING}); - makeRtorrentCall(log, "load.raw_start", new Object[]{bytes}); + if (version >= 904) { + makeRtorrentCall(log, "network.xmlrpc.size_limit.set", new Object[]{"", size + XMLRPC_EXTRA_PADDING}); + makeRtorrentCall(log, "load.raw_start", new Object[]{"", bytes}); } else { makeRtorrentCall(log, "set_xmlrpc_size_limit", new Object[]{size + XMLRPC_EXTRA_PADDING}); makeRtorrentCall(log, "load_raw_start", new Object[]{bytes});