FileFactory hat interrupted abgefangen, endlosschleife

git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@5953 ebf7c1c2-ba36-0410-9fe8-c592906822b4
This commit is contained in:
jiaz 2009-05-31 13:21:21 +00:00
parent b29c39d244
commit 4ec129aefa
2 changed files with 7 additions and 1 deletions

View File

@ -160,6 +160,10 @@ public class DownloadWatchDog implements ControlListener, DownloadControllerList
Thread.sleep(100);
} catch (InterruptedException e) {
}
cons = new ArrayList<SingleDownloadController>(DownloadControllers.values());
for (SingleDownloadController singleDownloadController : cons) {
al.add(singleDownloadController.abortDownload().getDownloadLink());
}
}
DownloadController.getInstance().fireDownloadLinkUpdate(al);
progress.finalize();

View File

@ -72,6 +72,8 @@ public class FileFactory extends PluginForHost {
public void handleFree(DownloadLink parameter) throws Exception {
try {
handleFree0(parameter);
} catch (InterruptedException e2) {
return;
} catch (IOException e) {
logger.log(java.util.logging.Level.SEVERE, "Exception occured", e);
if (e.getMessage() != null && e.getMessage().contains("502")) {
@ -125,7 +127,7 @@ public class FileFactory extends PluginForHost {
parameter.requestGuiUpdate();
captchaCode = getCaptchaCode(captchaFile, parameter);
} catch (Exception e) {
continue;
return;
}
captchaCode = captchaCode.replaceAll("\\-", "");
if (captchaCode.length() < 4) continue;