make comparison function strict weak ordering

This commit is contained in:
Arvid Norberg 2013-12-02 09:39:17 +00:00
parent 4054496861
commit 356332a93b
1 changed files with 1 additions and 1 deletions

View File

@ -5985,7 +5985,7 @@ namespace libtorrent
// a lower value of connected_time means it's been waiting // a lower value of connected_time means it's been waiting
// longer. This is a less-than comparison, so if lhs has // longer. This is a less-than comparison, so if lhs has
// waited longer than rhs, we should return false. // waited longer than rhs, we should return false.
return lhs->connected_time() >= rhs->connected_time(); return lhs->connected_time() > rhs->connected_time();
} }
bool torrent::attach_peer(peer_connection* p) bool torrent::attach_peer(peer_connection* p)