mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 14:07:37 +03:00
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed redundant DownloadContext::hasAttribute(...) calls. * src/ConsoleStatCalc.cc * src/RequestGroup.cc * src/XmlRpcMethodImpl.cc
This commit is contained in:
parent
8ab55abf11
commit
52f11b5a21
4 changed files with 15 additions and 12 deletions
|
@ -464,12 +464,10 @@ BDE GetPeersXmlRpcMethod::process
|
|||
(StringFormat("No peer data is available for GID#%d", gid).str());
|
||||
}
|
||||
BDE peers = BDE::list();
|
||||
if(group->getDownloadContext()->hasAttribute(bittorrent::BITTORRENT)) {
|
||||
BtObject btObject = e->getBtRegistry()->get(group->getGID());
|
||||
if(!btObject.isNull()) {
|
||||
assert(!btObject._peerStorage.isNull());
|
||||
gatherPeer(peers, btObject._peerStorage);
|
||||
}
|
||||
BtObject btObject = e->getBtRegistry()->get(group->getGID());
|
||||
if(!btObject.isNull()) {
|
||||
assert(!btObject._peerStorage.isNull());
|
||||
gatherPeer(peers, btObject._peerStorage);
|
||||
}
|
||||
return peers;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue