mirror of
https://bitbucket.org/projectswg/cucore.git
synced 2026-09-11 23:45:03 -04:00
Removed unnecessary logic in CorpseService.terminate()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user