Jelajahi Sumber

Call requestQueueCheck() even if reservedGroups_ is not empty.

Tatsuhiro Tsujikawa 14 tahun lalu
induk
melakukan
bb7e2e69db
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      src/RequestGroupMan.cc

+ 1 - 3
src/RequestGroupMan.cc

@@ -139,9 +139,7 @@ void RequestGroupMan::insertReservedGroup
 void RequestGroupMan::insertReservedGroup
 (size_t pos, const SharedHandle<RequestGroup>& group)
 {
-  if(reservedGroups_.empty()) {
-    requestQueueCheck();
-  }
+  requestQueueCheck();
   reservedGroups_.insert
     (reservedGroups_.begin()+std::min(reservedGroups_.size(), pos), group);
 }