mirror of https://github.com/aria2/aria2
Fix compile error with --disable-bittorrent
parent
b5bab4097d
commit
8d30869966
|
@ -1264,10 +1264,15 @@ void RequestGroup::enableSeedOnly()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RequestGroup::isSeeder() const {
|
bool RequestGroup::isSeeder() const
|
||||||
|
{
|
||||||
|
#ifdef ENABLE_BITTORRENT
|
||||||
return downloadContext_->hasAttribute(CTX_ATTR_BT) &&
|
return downloadContext_->hasAttribute(CTX_ATTR_BT) &&
|
||||||
!bittorrent::getTorrentAttrs(downloadContext_)->metadata.empty() &&
|
!bittorrent::getTorrentAttrs(downloadContext_)->metadata.empty() &&
|
||||||
downloadFinished();
|
downloadFinished();
|
||||||
|
#else // !ENABLE_BITTORRENT
|
||||||
|
return false;
|
||||||
|
#endif // !ENABLE_BITTORRENT
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace aria2
|
} // namespace aria2
|
||||||
|
|
Loading…
Reference in New Issue