mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
only keep one assignment in assignment-server for demo
This commit is contained in:
parent
2a9330c41e
commit
a6cf3be4c4
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue