[client] main: fix failure to startup when the guest VM has no UUID

This commit is contained in:
Geoffrey McRae 2022-05-30 13:43:51 +10:00
parent 20d459d113
commit 286e7622b8

View File

@ -877,16 +877,16 @@ void spiceReady(void)
break; break;
} }
if (!uuidValid) if (uuidValid)
return; {
memcpy(g_state.spiceUUID, info.uuid, sizeof(g_state.spiceUUID));
memcpy(g_state.spiceUUID, info.uuid, sizeof(g_state.spiceUUID)); checkUUID();
checkUUID(); }
purespice_freeServerInfo(&info);
if (g_params.useSpiceInput) if (g_params.useSpiceInput)
keybind_spiceRegister(); keybind_spiceRegister();
purespice_freeServerInfo(&info);
lgSignalEvent(e_spice); lgSignalEvent(e_spice);
} }