diff options
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 |
