mirror of
https://github.com/btdig/dhtcrawler2.git
synced 2025-01-18 20:21:37 +00:00
fix cache_indexer state not saved correctly
This commit is contained in:
parent
91ab9d9321
commit
75841f8237
@ -42,7 +42,9 @@ worker_run(Parent, Conn, FileName) ->
|
||||
|
||||
process_hash(Conn, FileName, FP, PrintPos, MaxPos, CheckStep) ->
|
||||
case io:get_line(FP, "") of
|
||||
eof -> 0;
|
||||
eof ->
|
||||
check_progress(FileName, MaxPos, 0, MaxPos, CheckStep),
|
||||
0;
|
||||
Line ->
|
||||
save_hash(Conn, strip_lf(Line)),
|
||||
{ok, Pos} = file:position(FP, cur),
|
||||
|
Loading…
Reference in New Issue
Block a user