Encapsulate obscure detail that lower numeric priority is higher queue priority
[clinton/bobotpp.git] / source / ServerQueue.C
index d0432f7..0f13d36 100644 (file)
@@ -46,7 +46,7 @@ ServerQueue::addItem(ServerQueueItem *sqi)
 
   for (it = serverQueue.begin(); it != serverQueue.end(); ++it)
     {
-      if ((*it)->priority > sqi->priority)
+      if (**it < *sqi)
        {
          break;
        }