mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 16:46:28 +00:00
[client] be quicker at detecting restart and quieter about it
This commit is contained in:
parent
fa50b7824c
commit
bfb12c74fb
@ -1500,6 +1500,9 @@ restart:
|
|||||||
if (!state.running)
|
if (!state.running)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
// dont show warnings again after the first startup
|
||||||
|
waitCount = 100;
|
||||||
|
|
||||||
const bool magicMatches = memcmp(udata->magic, KVMFR_MAGIC, sizeof(udata->magic)) == 0;
|
const bool magicMatches = memcmp(udata->magic, KVMFR_MAGIC, sizeof(udata->magic)) == 0;
|
||||||
if (udataSize != sizeof(KVMFR) || !magicMatches || udata->version != KVMFR_VERSION)
|
if (udataSize != sizeof(KVMFR) || !magicMatches || udata->version != KVMFR_VERSION)
|
||||||
{
|
{
|
||||||
@ -1541,10 +1544,9 @@ restart:
|
|||||||
if (!lgmpClientSessionValid(state.lgmp))
|
if (!lgmpClientSessionValid(state.lgmp))
|
||||||
{
|
{
|
||||||
state.restart = true;
|
state.restart = true;
|
||||||
DEBUG_WARN("Session is invalid, has the host shutdown?");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
SDL_WaitEventTimeout(NULL, 1000);
|
SDL_WaitEventTimeout(NULL, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.restart)
|
if (state.restart)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user