diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-02-15 23:54:51 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-02-15 23:54:51 +0900 |
| commit | 8d308699665de459e957a4298975e56d74ec2865 (patch) | |
| tree | 2349328f1448a41e2d5c645f586a277d38e6c4e7 /src/RequestGroup.cc | |
| parent | b5bab4097d8512bf532cbe614f497a45c77de9b1 (diff) | |
Fix compile error with --disable-bittorrent
Diffstat (limited to 'src/RequestGroup.cc')
| -rw-r--r-- | src/RequestGroup.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc index 0098acc4..40db093d 100644 --- a/src/RequestGroup.cc +++ b/src/RequestGroup.cc @@ -1264,10 +1264,15 @@ void RequestGroup::enableSeedOnly() } } -bool RequestGroup::isSeeder() const { +bool RequestGroup::isSeeder() const +{ +#ifdef ENABLE_BITTORRENT return downloadContext_->hasAttribute(CTX_ATTR_BT) && !bittorrent::getTorrentAttrs(downloadContext_)->metadata.empty() && downloadFinished(); +#else // !ENABLE_BITTORRENT + return false; +#endif // !ENABLE_BITTORRENT } } // namespace aria2 |
