1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 11:21:29 +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);
get.addHeader(new BasicHeader(RestApi.HEADER_API_KEY, params[2]));
if (isCancelled())
return null;
try {
Log.w(TAG, "Calling Rest API at " + fullUri);