fix removal of assignment from queue to not remove all

This commit is contained in:
Stephen Birarda 2013-09-06 10:28:45 -07:00
parent f7b0158cfe
commit dbc6fff73b

View file

@ -69,7 +69,10 @@ int main(int argc, const char* argv[]) {
// delete this assignment now that it has been sent out
delete *assignment;
// remove it from the deque and make the iterator the next assignment
assignment = assignmentQueue.erase(assignment);
assignmentQueue.erase(assignment);
// stop looping - we've handed out an assignment
break;
} else {
// push forward the iterator
assignment++;