mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-04 01:34:13 +00:00
[client] if the host version doesn't match wait for it to be upgraded
This change allows one to upgrade the host application using the LG spice client instead of immediately terminating
This commit is contained in:
@@ -1913,7 +1913,20 @@ restart:
|
||||
DEBUG_ERROR("Invalid KVMFR magic");
|
||||
|
||||
DEBUG_BREAK();
|
||||
return -1;
|
||||
|
||||
if (magicMatches)
|
||||
{
|
||||
DEBUG_INFO("Waiting for you to upgrade the host application");
|
||||
while (g_state.state == APP_STATE_RUNNING && udata->version != KVMFR_VERSION)
|
||||
SDL_WaitEventTimeout(NULL, 1000);
|
||||
|
||||
if (g_state.state != APP_STATE_RUNNING)
|
||||
return -1;
|
||||
|
||||
goto restart;
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
||||
DEBUG_INFO("Host ready, reported version: %s", udata->hostver);
|
||||
|
Reference in New Issue
Block a user