Browse Source

Fixed assertion in removeRequestGroupIndex()

Tatsuhiro Tsujikawa 13 years ago
parent
commit
8f1049c15f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/RequestGroupMan.cc

+ 1 - 1
src/RequestGroupMan.cc

@@ -177,7 +177,7 @@ void removeRequestGroupIndex
 (std::map<a2_gid_t, SharedHandle<RequestGroup> >& groupIndex,
  const SharedHandle<RequestGroup>& group)
 {
-  assert(group->getGID() == 1);
+  assert(groupIndex.count(group->getGID()) == 1);
   groupIndex.erase(group->getGID());
 }
 } // namespace