mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 21:02:17 +02:00
Fix AssignmentClient unpacking an assignment when it already has one
This commit is contained in:
parent
7c6c75c484
commit
29c287227c
1 changed files with 5 additions and 0 deletions
|
@ -235,6 +235,11 @@ void AssignmentClient::sendAssignmentRequest() {
|
|||
void AssignmentClient::handleCreateAssignmentPacket(QSharedPointer<ReceivedMessage> message) {
|
||||
qCDebug(assigmnentclient) << "Received a PacketType::CreateAssignment - attempting to unpack.";
|
||||
|
||||
if (_currentAssignment) {
|
||||
qCWarning(assigmnentclient) << "Received a PacketType::CreateAssignment while still running an active assignment. Ignoring.";
|
||||
return;
|
||||
}
|
||||
|
||||
// construct the deployed assignment from the packet data
|
||||
_currentAssignment = AssignmentFactory::unpackAssignment(*message);
|
||||
|
||||
|
|
Loading…
Reference in a new issue