Prevent timing NPEs on CrawlLimitEnforcer-triggered crawl end

* AbstractFrontier.java
    close recovery log in stop() (comes later, usu. from managerThread) rather than terminate() (earlier, may occur in other threads like progress-stats-snapshot thread)
This commit is contained in:
gojomo committed 2009-12-05 00:55:55 +00:00
1 parent 21d4bce819
commit 7d0061884c
1 file changed
+1 -2
@@ -170,6 +170,7 @@ public abstract class AbstractFrontier
public void stop() {
terminate();
ArchiveUtils.closeQuietly(this.recover);
}
@@ -643,8 +644,6 @@ public abstract class AbstractFrontier
synchronized public void terminate() {
requestState(State.FINISH);
// TODO: move this recover-cleanup to manager thread?
ArchiveUtils.closeQuietly(this.recover);
}
/**