[client] main: move checkUUID to after informational prints are done

This change makes the client print the check failure as the last thing
before disconnecting making it more obvious to the user.
This commit is contained in:
Geoffrey McRae 2022-01-06 15:18:10 +11:00
parent 8cdeaceed9
commit c20bb27b67

View File

@ -847,7 +847,6 @@ static void checkUUID(void)
return;
DEBUG_ERROR("UUIDs do not match, you have connected SPICE to the wrong guest");
DEBUG_ERROR("Shutting down");
g_state.state = APP_STATE_SHUTDOWN;
}
@ -1359,7 +1358,6 @@ restart:
memcpy(g_state.guestUUID, vmInfo->uuid, sizeof(g_state.guestUUID));
g_state.guestUUIDValid = true;
checkUUID();
break;
}
@ -1395,8 +1393,10 @@ restart:
udataSize -= record->size;
}
DEBUG_INFO("Host ready, reported version: %s", udata->hostver);
DEBUG_INFO("Starting session");
checkUUID();
if (g_state.state == APP_STATE_RUNNING)
DEBUG_INFO("Starting session");
g_state.kvmfrFeatures = udata->features;