to avoid there's no hash and no wait_download, the hash reader may stop working

This commit is contained in:
Kevin Lynx 2013-07-15 22:03:52 +08:00
parent b5692682e2
commit a82fa71cf4

View File

@ -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}).