Fix "Promise already satisfied" error
This commit is contained in:
parent
4de0639105
commit
794e4ab475
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,9 @@ protected:
|
|||
std::rethrow_exception(exc);
|
||||
} catch (DownloadError & e) {
|
||||
if (e.error == Downloader::NotFound || e.error == Downloader::Forbidden)
|
||||
success(0);
|
||||
return success(0);
|
||||
failure(exc);
|
||||
} catch (...) {
|
||||
failure(exc);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue