only keep one assignment in assignment-server for demo

This commit is contained in:
Stephen Birarda 2013-08-07 15:52:04 -07:00
parent 2a9330c41e
commit a6cf3be4c4

View file

@ -63,6 +63,12 @@ int main(int argc, const char* argv[]) {
qDebug() << "Added an assignment with script with filename" << newAssignment.scriptFilename << "\n";
// add this assignment to the queue
// we're not a queue right now, only keep one assignment
if (assignmentQueue.size() > 0) {
assignmentQueue.pop();
}
assignmentQueue.push(newAssignment);
}
}