private void startRequestForNewEdition() { try { concurrentFetchCount -= 1; mStorage.setAnnounceEdition(mStorage.getAnnounceEdition() + 1); addRequest(new FreenetURI(mStorage.getAnnounceKey())); concurrentFetchCount += 1; } catch (MalformedURLException e) { System.err.println( "[Async_AnnounceFetcher]::startRequestForNewEdition() MalformedURLException: " + e.getMessage()); e.printStackTrace(); } }
public void startFetching() { this.isRunning = true; try { for (short i = 0; i < mStorage.config.concurrentAnnounceFetcher; i++) { mStorage.setAnnounceEdition(mStorage.getAnnounceEdition() + 1); addRequest(new FreenetURI(mStorage.getAnnounceKey())); concurrentFetchCount += 1; } } catch (MalformedURLException e) { System.err.println( "[Async_AnnounceFetcher]::startFetching() MalformedURLException: " + e.getMessage()); e.printStackTrace(); } }