Call requestQueueCheck() even if reservedGroups_ is not empty.

pull/1/head
Tatsuhiro Tsujikawa 2011-06-16 22:36:20 +09:00
parent beb9bb5646
commit bb7e2e69db
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}