Loading src/main/java/ecorp/easy/installer/controllers/subcontrollers/DownloadSrcController.java +5 −5 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public class DownloadSrcController extends AbstractSubController { private @FXML Button restartDownloadBtn; private HashMap<String, String> sourcesToDownload; private Iterator<HashMap.Entry<String, String>> taskIterator; private Iterator<HashMap.Entry<String, String>> sourceIterator; private DownloadService currentService; @Override Loading @@ -75,15 +75,15 @@ public class DownloadSrcController extends AbstractSubController { return; } taskIterator = sourcesToDownload.entrySet().iterator(); sourceIterator = sourcesToDownload.entrySet().iterator(); startNextDownload(); } private boolean startNextDownload(){ logger.info("startNextDownload()"); logger.debug("taskIterator has next ? {} "+taskIterator.hasNext()); if(taskIterator.hasNext()){ HashMap.Entry<String, String> source = taskIterator.next(); logger.debug("taskIterator has next ? {} "+sourceIterator.hasNext()); if(sourceIterator.hasNext()){ HashMap.Entry<String, String> source = sourceIterator.next(); currentService = new DownloadService(source.getKey(), source.getValue()); bindProgressUIToService(currentService); Loading Loading
src/main/java/ecorp/easy/installer/controllers/subcontrollers/DownloadSrcController.java +5 −5 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public class DownloadSrcController extends AbstractSubController { private @FXML Button restartDownloadBtn; private HashMap<String, String> sourcesToDownload; private Iterator<HashMap.Entry<String, String>> taskIterator; private Iterator<HashMap.Entry<String, String>> sourceIterator; private DownloadService currentService; @Override Loading @@ -75,15 +75,15 @@ public class DownloadSrcController extends AbstractSubController { return; } taskIterator = sourcesToDownload.entrySet().iterator(); sourceIterator = sourcesToDownload.entrySet().iterator(); startNextDownload(); } private boolean startNextDownload(){ logger.info("startNextDownload()"); logger.debug("taskIterator has next ? {} "+taskIterator.hasNext()); if(taskIterator.hasNext()){ HashMap.Entry<String, String> source = taskIterator.next(); logger.debug("taskIterator has next ? {} "+sourceIterator.hasNext()); if(sourceIterator.hasNext()){ HashMap.Entry<String, String> source = sourceIterator.next(); currentService = new DownloadService(source.getKey(), source.getValue()); bindProgressUIToService(currentService); Loading