mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 13:12:32 +00:00
* Bug fixes to the previous rev's View code.
* Fixed dht alignment issues. Patch by Josef Drexler.
* Removed duplicate code in PeerConnection{Leech,Seed}. Patch by Josef
Drexler.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1043 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ as_boolean(const torrent::Object& rawArgs) {
|
||||
|
||||
torrent::Object
|
||||
apply_not(rpc::target_type target, const torrent::Object& rawArgs) {
|
||||
return (int64_t)as_boolean(rawArgs);
|
||||
return (int64_t)!as_boolean(rawArgs);
|
||||
}
|
||||
|
||||
torrent::Object
|
||||
|
||||
@@ -132,6 +132,9 @@ struct view_downloads_filter : std::unary_function<Download*, bool> {
|
||||
view_downloads_filter(const std::string& cmd) : m_command(cmd) {}
|
||||
|
||||
bool operator () (Download* d1) const {
|
||||
if (m_command.empty())
|
||||
return true;
|
||||
|
||||
try {
|
||||
torrent::Object result = rpc::parse_command_single(rpc::make_target(d1), m_command);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user