Skip to content

Commit d877fa5

Browse files
committed
Fix us.codecraft.webmagic.scheduler.FileCacheQueueScheduler#readCursorFile, refs #1175.
1 parent 36533c7 commit d877fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webmagic-extension/src/main/java/us/codecraft/webmagic/scheduler/FileCacheQueueScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private void readCursorFile() throws IOException {
125125
}
126126
}
127127
if (lastLine != null) {
128-
cursor.set(NumberUtils.toInt(line));
128+
cursor.set(NumberUtils.toInt(lastLine));
129129
}
130130
}
131131
}

0 commit comments

Comments
 (0)