mirror of
https://github.com/mirror/jdownloader.git
synced 2025-02-17 02:37:56 +00:00
AbortExtractionAction: Early return
git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49834 ebf7c1c2-ba36-0410-9fe8-c592906822b4 Former-commit-id: d4d94c66440276c1902f501c2586c3551aa15d3b
This commit is contained in:
parent
2ee7cafcb6
commit
c1f54f6e2d
@ -21,13 +21,15 @@ public class AbortExtractionAction extends AbstractExtractionContextAction {
|
||||
@Override
|
||||
protected void onAsyncInitDone() {
|
||||
final List<Archive> lArchives = getArchives();
|
||||
if (lArchives != null && lArchives.size() > 0) {
|
||||
for (final Archive lArchive : lArchives) {
|
||||
final ExtractionController extractionController = lArchive.getExtractionController();
|
||||
if (extractionController != null && !extractionController.isFinished() && !extractionController.gotKilled()) {
|
||||
setEnabled(true);
|
||||
break;
|
||||
}
|
||||
if (lArchives == null || lArchives.size() == 0) {
|
||||
/* Do nothing */
|
||||
return;
|
||||
}
|
||||
for (final Archive lArchive : lArchives) {
|
||||
final ExtractionController extractionController = lArchive.getExtractionController();
|
||||
if (extractionController != null && !extractionController.isFinished() && !extractionController.gotKilled()) {
|
||||
setEnabled(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user