1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 19:31:30 +00:00

Don't retry if the task was cancelled

This commit is contained in:
Lode Hoste 2015-04-12 23:24:11 +02:00
parent a447807ff6
commit 97bbeadc6a

View file

@ -68,6 +68,9 @@ public class GetTask extends AsyncTask<String, Void, String> {
HttpGet get = new HttpGet(fullUri); HttpGet get = new HttpGet(fullUri);
get.addHeader(new BasicHeader(RestApi.HEADER_API_KEY, params[2])); get.addHeader(new BasicHeader(RestApi.HEADER_API_KEY, params[2]));
if (isCancelled())
return null;
try { try {
Log.w(TAG, "Calling Rest API at " + fullUri); Log.w(TAG, "Calling Rest API at " + fullUri);