Merge pull request #71 from nlevitt/checkpoint-no-ui-hang

avoid calling CheckpointService.hasAvailableCheckpoints() when crawl not...
This commit is contained in:
vonrosen
2014-05-22 16:44:22 -07:00
@@ -127,7 +127,7 @@ public class CrawlJobModel extends LinkedHashMap<String, Object> implements Seri
List<String> checkpointFiles = new ArrayList<String>();
if (crawlJob.getCheckpointService() != null) {
if (crawlJob.getCheckpointService().hasAvailableCheckpoints() && crawlJob.isLaunchable()) {
if (crawlJob.isLaunchable() && crawlJob.getCheckpointService().hasAvailableCheckpoints()) {
for (File f : crawlJob.getCheckpointService().findAvailableCheckpointDirectories()) {
checkpointFiles.add(f.getName());
}