diff options
Diffstat (limited to 'src/LpdReceiveMessageCommand.cc')
| -rw-r--r-- | src/LpdReceiveMessageCommand.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/LpdReceiveMessageCommand.cc b/src/LpdReceiveMessageCommand.cc index 7f106803..2208b41e 100644 --- a/src/LpdReceiveMessageCommand.cc +++ b/src/LpdReceiveMessageCommand.cc @@ -100,15 +100,12 @@ bool LpdReceiveMessageCommand::execute() } continue; } - const BDE& torrentAttrs = dctx->getAttribute(bittorrent::BITTORRENT); - if(torrentAttrs.containsKey(bittorrent::PRIVATE)) { - if(torrentAttrs[bittorrent::PRIVATE].i() == 1) { - if(getLogger()->debug()) { - getLogger()->debug - ("Ignore LPD message because the torrent is private."); - } - continue; + if(bittorrent::getTorrentAttrs(dctx)->privateTorrent) { + if(getLogger()->debug()) { + getLogger()->debug + ("Ignore LPD message because the torrent is private."); } + continue; } RequestGroup* group = dctx->getOwnerRequestGroup(); assert(group); |
