mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:33:40 +00:00
[client] don't report a spice error on graceful shutdown
This commit is contained in:
parent
d43126f433
commit
c8b4787cb1
@ -769,15 +769,15 @@ int main_frameThread(void * unused)
|
||||
int spiceThread(void * arg)
|
||||
{
|
||||
while(g_state.state != APP_STATE_SHUTDOWN)
|
||||
if (!purespice_process(100))
|
||||
{
|
||||
PSStatus status;
|
||||
if ((status = purespice_process(100)) != PS_STATUS_RUN)
|
||||
{
|
||||
if (g_state.state != APP_STATE_SHUTDOWN)
|
||||
{
|
||||
g_state.state = APP_STATE_SHUTDOWN;
|
||||
if (status != PS_STATUS_SHUTDOWN)
|
||||
DEBUG_ERROR("failed to process spice messages");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (g_state.audioDev)
|
||||
{
|
||||
@ -1041,12 +1041,16 @@ static int lg_run(void)
|
||||
}
|
||||
|
||||
while(g_state.state != APP_STATE_SHUTDOWN && !purespice_ready())
|
||||
if (!purespice_process(1000))
|
||||
{
|
||||
PSStatus status;
|
||||
if ((status = purespice_process(1000)) != PS_STATUS_RUN)
|
||||
{
|
||||
g_state.state = APP_STATE_SHUTDOWN;
|
||||
DEBUG_ERROR("Failed to process spice messages");
|
||||
if (status != PS_STATUS_SHUTDOWN)
|
||||
DEBUG_ERROR("Failed to process spice messages");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
purespice_mouseMode(true);
|
||||
if (!lgCreateThread("spiceThread", spiceThread, NULL, &t_spice))
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit a9664f731ab720ff890c35225f271048addfd54d
|
||||
Subproject commit d1f86f739974851afc5f98e13ea74ba6c96f805b
|
Loading…
Reference in New Issue
Block a user