summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorMartin Fietz <Martin.Fietz@gmail.com>2017-04-10 21:49:22 +0200
committerMartin Fietz <Martin.Fietz@gmail.com>2017-04-10 21:49:22 +0200
commit6c6607f7d35dbad6ed528a47e857ade5e47c9ea1 (patch)
tree630294e7239b0ec85869fb58e1fbfddb52a1fe41 /core/src
parent25a8334acae4cafa4e615729a07a1f1748d6d55a (diff)
downloadAntennaPod-6c6607f7d35dbad6ed528a47e857ade5e47c9ea1.zip
Remove propagation of interrupts introduced in #2286
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
index 689235e6f..4a1047eb2 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/download/DownloadService.java
@@ -235,7 +235,6 @@ public class DownloadService extends Service {
}
} catch (InterruptedException e) {
Log.e(TAG, "DownloadCompletionThread was interrupted");
- Thread.currentThread().interrupt();
} catch (ExecutionException e) {
Log.e(TAG, "ExecutionException in DownloadCompletionThread: " + e.getMessage());
numberOfDownloads.decrementAndGet();
@@ -626,7 +625,6 @@ public class DownloadService extends Service {
tasks++;
} catch (InterruptedException e) {
Log.e(TAG, "FeedSyncThread was interrupted");
- Thread.currentThread().interrupt();
return null;
}
@@ -645,7 +643,6 @@ public class DownloadService extends Service {
} catch (InterruptedException e) {
Log.d(TAG, "interrupted while waiting for more downloads");
tasks += pollCompletedDownloads();
- Thread.currentThread().interrupt();
} finally {
currentTime = System.currentTimeMillis();
}
@@ -665,7 +662,6 @@ public class DownloadService extends Service {
}
} catch (InterruptedException e) {
Log.e(TAG, "FeedSyncThread was interrupted");
- Thread.currentThread().interrupt();
} catch (ExecutionException e) {
Log.e(TAG, "ExecutionException in FeedSyncThread: " + e.getMessage());
}
@@ -704,7 +700,6 @@ public class DownloadService extends Service {
dbUpdateFuture.get();
} catch (InterruptedException e) {
Log.e(TAG, "FeedSyncThread was interrupted");
- Thread.currentThread().interrupt();
} catch (ExecutionException e) {
Log.e(TAG, "ExecutionException in FeedSyncThread: " + e.getMessage());
}
@@ -744,7 +739,6 @@ public class DownloadService extends Service {
dbUpdateFuture.get();
} catch (InterruptedException e) {
Log.e(TAG, "interrupted while updating the db");
- Thread.currentThread().interrupt();
} catch (ExecutionException e) {
Log.e(TAG, "ExecutionException while updating the db: " + e.getMessage());
}
@@ -940,7 +934,6 @@ public class DownloadService extends Service {
DBWriter.setFeedMedia(media).get();
} catch (InterruptedException e) {
Log.e(TAG, "FailedDownloadHandler was interrupted");
- Thread.currentThread().interrupt();
} catch (ExecutionException e) {
Log.e(TAG, "ExecutionException in FailedDownloadHandler: " + e.getMessage());
}
@@ -1009,7 +1002,6 @@ public class DownloadService extends Service {
}
} catch (InterruptedException e) {
Log.e(TAG, "MediaHandlerThread was interrupted");
- Thread.currentThread().interrupt();
} catch (ExecutionException e) {
Log.e(TAG, "ExecutionException in MediaHandlerThread: " + e.getMessage());
status = new DownloadStatus(media, media.getEpisodeTitle(), DownloadError.ERROR_DB_ACCESS_ERROR, false, e.getMessage());