diff options
Diffstat (limited to 'Plugins/utils/ContactAsyncQueue.cpp')
-rw-r--r-- | Plugins/utils/ContactAsyncQueue.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Plugins/utils/ContactAsyncQueue.cpp b/Plugins/utils/ContactAsyncQueue.cpp index ca6bf83..9ea2682 100644 --- a/Plugins/utils/ContactAsyncQueue.cpp +++ b/Plugins/utils/ContactAsyncQueue.cpp @@ -22,9 +22,12 @@ Boston, MA 02111-1307, USA. // Itens with higher time at end
-static int QueueSortItems(const QueueItem *i1, const QueueItem *i2)
+static int QueueSortItems(const QueueItem *oldItem, const QueueItem *newItem)
{
- return i1->check_time - i2->check_time;
+ if (oldItem->check_time == newItem->check_time)
+ return -1;
+
+ return oldItem->check_time - newItem->check_time;
}
// Itens with higher time at end
|