[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;
}
if (!uuidValid)
return;
memcpy(g_state.spiceUUID, info.uuid, sizeof(g_state.spiceUUID));
checkUUID();
if (uuidValid)
{
memcpy(g_state.spiceUUID, info.uuid, sizeof(g_state.spiceUUID));
checkUUID();
}
purespice_freeServerInfo(&info);
if (g_params.useSpiceInput)
keybind_spiceRegister();
purespice_freeServerInfo(&info);
lgSignalEvent(e_spice);
}