From 356332a93b95d32a31383c55ed902770e8fdd4ff Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 2 Dec 2013 09:39:17 +0000 Subject: [PATCH] make comparison function strict weak ordering --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 69a9bfd50..ad49a8855 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -5985,7 +5985,7 @@ namespace libtorrent // a lower value of connected_time means it's been waiting // longer. This is a less-than comparison, so if lhs has // 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)