diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-20 16:46:56 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-02-20 16:46:56 +0000 |
| commit | c4aaea3ca27ddd985b7b2394fb6108be370789ca (patch) | |
| tree | 7f71ed011f7a7014d3ba592086be33ee99864427 /src/MultiUrlRequestInfo.h | |
| parent | 2cc471ebf6600f11c6af07e4e968778c2c470b0b (diff) | |
2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that a return code is always 0. BUG#1897704
If error occurred during the download or there exist unfinished
downloads, aria2 returns with code 1.
* src/RequestGroupMan.{h, cc}
* src/MultiUrlRequestInfo.{h, cc}
* src/main.cc
Diffstat (limited to 'src/MultiUrlRequestInfo.h')
| -rw-r--r-- | src/MultiUrlRequestInfo.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/MultiUrlRequestInfo.h b/src/MultiUrlRequestInfo.h index 87a429f1..07ed6176 100644 --- a/src/MultiUrlRequestInfo.h +++ b/src/MultiUrlRequestInfo.h @@ -60,7 +60,10 @@ public: virtual ~MultiUrlRequestInfo(); - void execute(); + /** + * Returns 0 if all downloads have completed, otherwise returns 1. + */ + int32_t execute(); }; typedef SharedHandle<MultiUrlRequestInfo> MultiUrlRequestInfoHandle; |
