Removed unnecessary logic in CorpseService.terminate()

This commit is contained in:
Mads Boddum
2016-09-21 11:26:45 +02:00
parent 3948c3f794
commit 3538f642cd
+1 -8
View File
@@ -54,14 +54,7 @@ public class CorpseService extends Service {
@Override
public boolean terminate() {
if (executor != null) {
executor.shutdownNow();
try {
executor.awaitTermination(3, TimeUnit.SECONDS);
} catch (InterruptedException e) {
}
}
executor.shutdown();
return super.terminate();
}