Ok, I think I got the sucker. Sorry for the hassle and thanks for the help.
10302
Index: UploadQueue.cpp
===================================================================
--- UploadQueue.cpp (revision 10301)
+++ UploadQueue.cpp (working copy)
@@ -112,6 +112,7 @@
// swap them
*it2 = *it1;
*it1 = cur_client;
+ it2--;
} else {
// no need to check further since list is already sorted
break;