Browse Source

Fix bug in server checker background service that would incorrectly stop all checking (for subsequent servers) if one was not available. Fixes #166.

pull/173/head
Eric Kok 10 years ago
parent
commit
3079836dc8
  1. 4
      core/src/org/transdroid/core/service/ServerCheckerService.java

4
core/src/org/transdroid/core/service/ServerCheckerService.java

@ -85,7 +85,7 @@ public class ServerCheckerService extends IntentService { @@ -85,7 +85,7 @@ public class ServerCheckerService extends IntentService {
// enabled by the user for this specific server
if (server.getType() == null || server.getAddress() == null || server.getAddress().equals("")
|| !(server.shouldAlarmOnFinishedDownload() || server.shouldAlarmOnNewTorrent()))
return;
continue;
// Get the statistics for the last time we checked this server
JSONArray lastStats = applicationSettings.getServerLastStats(server);
@ -95,7 +95,7 @@ public class ServerCheckerService extends IntentService { @@ -95,7 +95,7 @@ public class ServerCheckerService extends IntentService {
DaemonTaskResult result = RetrieveTask.create(adapter).execute();
if (!(result instanceof RetrieveTaskSuccessResult)) {
// Cannot retrieve torrents at this time
return;
continue;
}
List<Torrent> retrieved = ((RetrieveTaskSuccessResult) result).getTorrents();
Log.d(this, server.getName() + ": Retrieved torrent listing");

Loading…
Cancel
Save