mirror of
https://github.com/btdig/dhtcrawler2.git
synced 2025-01-31 10:31:37 +00:00
to avoid there's no hash and no wait_download, the hash reader may stop working
This commit is contained in:
parent
b5692682e2
commit
a82fa71cf4
@ -254,7 +254,8 @@ schedule_next({}, true) ->
|
||||
|
||||
schedule_next({}, false) ->
|
||||
?T("hash is empty, try to startup downloader"),
|
||||
self() ! process_download_hash;
|
||||
self() ! process_download_hash,
|
||||
timer:send_after(?WAIT_TIME, timeout);
|
||||
|
||||
schedule_next({Doc}, DownloadDoc) ->
|
||||
gen_server:cast(self(), {process_hash, Doc, DownloadDoc}).
|
||||
|
Loading…
Reference in New Issue
Block a user