mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 00:52:27 +02:00
handle create assignment requests in domain-server
This commit is contained in:
parent
3fde2887a3
commit
1a82ba2301
1 changed files with 12 additions and 0 deletions
|
@ -414,6 +414,18 @@ int main(int argc, const char* argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
::assignmentQueueMutex.unlock();
|
||||
} else if (packetData[0] == PACKET_TYPE_CREATE_ASSIGNMENT) {
|
||||
// this is a create assignment likely recieved from a server needed more clients to help with load
|
||||
|
||||
// unpack it
|
||||
Assignment* createAssignment = new Assignment(packetData, receivedBytes);
|
||||
|
||||
qDebug() << "Received a create assignment -" << createAssignment << "\n";
|
||||
|
||||
// add the assignment at the back of the queue
|
||||
::assignmentQueueMutex.lock();
|
||||
::assignmentQueue.push_back(createAssignment);
|
||||
::assignmentQueueMutex.unlock();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue