From d9442a271d4eb1c5254becf61912c6c537bd9ace Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Tue, 26 Feb 2013 10:05:01 +0100 Subject: [PATCH] Don't treat tracker errors in Deluge as blocking. --- android/AndroidManifest.xml | 4 ++-- lib/src/org/transdroid/daemon/Deluge/DelugeAdapter.java | 2 +- .../org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 7c1809b7..dcea7127 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -18,8 +18,8 @@ --> diff --git a/lib/src/org/transdroid/daemon/Deluge/DelugeAdapter.java b/lib/src/org/transdroid/daemon/Deluge/DelugeAdapter.java index ee0ea171..8a7fa785 100644 --- a/lib/src/org/transdroid/daemon/Deluge/DelugeAdapter.java +++ b/lib/src/org/transdroid/daemon/Deluge/DelugeAdapter.java @@ -572,7 +572,7 @@ public class DelugeAdapter implements IDaemonAdapter { String error = tor.getString(RPC_MESSAGE); if (tor.getString(RPC_TRACKER_STATUS).indexOf("Error") > 0) { error += (error.length() > 0? "\n": "") + tor.getString(RPC_TRACKER_STATUS); - status = TorrentStatus.Error; + //status = TorrentStatus.Error; // Don't report this as blocking error } torrents.add(new Torrent(j, names.getString(j), diff --git a/lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java b/lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java index 5d2819ea..fb6a3fc2 100644 --- a/lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java +++ b/lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java @@ -413,7 +413,7 @@ public class QbittorrentAdapter implements IDaemonAdapter { private long parseSize(String string) { // See https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation - if (string.equals("Unknown") + if (string.equals("Unknown")) return -1; // Sizes are given in "703.3 MiB"-like string format // Returns size in B-based long @@ -469,7 +469,7 @@ public class QbittorrentAdapter implements IDaemonAdapter { private int parseSpeed(String speed) { // See https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation - if (speed.equals("Unknown") + if (speed.equals("Unknown")) return -1; // Speeds are in "21.9 KiB/s"-like string format // Returns speed in B/s-based integer