mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-15 05:23:02 +00:00
[client] be quicker at detecting restart and quieter about it
This commit is contained in:
parent
fa50b7824c
commit
bfb12c74fb
2 changed files with 5 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
B2-rc3-10-gda8b2d0cec+1
|
||||
B2-rc3-11-gfa50b7824c+1
|
|
@ -1500,6 +1500,9 @@ restart:
|
|||
if (!state.running)
|
||||
return -1;
|
||||
|
||||
// dont show warnings again after the first startup
|
||||
waitCount = 100;
|
||||
|
||||
const bool magicMatches = memcmp(udata->magic, KVMFR_MAGIC, sizeof(udata->magic)) == 0;
|
||||
if (udataSize != sizeof(KVMFR) || !magicMatches || udata->version != KVMFR_VERSION)
|
||||
{
|
||||
|
@ -1541,10 +1544,9 @@ restart:
|
|||
if (!lgmpClientSessionValid(state.lgmp))
|
||||
{
|
||||
state.restart = true;
|
||||
DEBUG_WARN("Session is invalid, has the host shutdown?");
|
||||
break;
|
||||
}
|
||||
SDL_WaitEventTimeout(NULL, 1000);
|
||||
SDL_WaitEventTimeout(NULL, 100);
|
||||
}
|
||||
|
||||
if (state.restart)
|
||||
|
|
Loading…
Reference in a new issue