Permalink
Browse files

bug fix, shutdown() is never called when download is finished

  • Loading branch information...
jaec committed Jul 5, 2012
1 parent ad3a7f0 commit e605a09538d6ca88d4f90ddebcda9b336a41acae
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/com/desdegdl/ObtenerActasPREP.java
@@ -15,7 +15,7 @@
*/
public class ObtenerActasPREP {
- public final static int NUMBER_OF_CONCURRENT_THREADS = 2;
+ public final static int NUMBER_OF_CONCURRENT_THREADS = 3;
public static final String PREPURL = "http://prep2012.ife.org.mx/prep/DetalleCasillas";
public static final String ACTASURL = "https://prep2012.ife.org.mx/actas/";
public static final String ACTASEXTENSION = ".jpg";
@@ -191,7 +191,6 @@ public void getAllActas() {
if (file.exists()) {
file.delete();
f.cancel(true);
- shutdown();
break;
}
@@ -215,6 +214,7 @@ public void getAllActas() {
}
executorService.shutdown();
+ shutdown();
}
class CrawlerResult {

0 comments on commit e605a09

Please sign in to comment.