mirror of
https://github.com/btdig/dhtcrawler2.git
synced 2025-02-07 13:59:08 +00:00
fix hash_reader stop working bug
This commit is contained in:
parent
1dc4a2c588
commit
5592b3989b
@ -218,6 +218,7 @@ try_next_download(Conn) ->
|
|||||||
check_in_index_cache(Conn, Doc).
|
check_in_index_cache(Conn, Doc).
|
||||||
|
|
||||||
check_in_index_cache(_, {}) ->
|
check_in_index_cache(_, {}) ->
|
||||||
|
timer:send_after(?WAIT_TIME, timeout),
|
||||||
empty;
|
empty;
|
||||||
check_in_index_cache(Conn, {Doc}) ->
|
check_in_index_cache(Conn, {Doc}) ->
|
||||||
{Hash} = bson:lookup(hash, Doc),
|
{Hash} = bson:lookup(hash, Doc),
|
||||||
|
Loading…
Reference in New Issue
Block a user