update get_response
This commit is contained in:
@@ -51,7 +51,7 @@ fn download_image(url_path: &str, file_path: &str, retry_times: i8) -> i8 {
|
||||
}
|
||||
if flag == 2 && retry_times > 1 {
|
||||
thread::sleep(Duration::from_millis(5000));
|
||||
download_image(url_path, file_path, retry_times - 1)
|
||||
return download_image(url_path, file_path, retry_times - 1)
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user