mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] don't report a spice error on graceful shutdown
This commit is contained in:
@@ -769,15 +769,15 @@ int main_frameThread(void * unused)
|
|||||||
int spiceThread(void * arg)
|
int spiceThread(void * arg)
|
||||||
{
|
{
|
||||||
while(g_state.state != APP_STATE_SHUTDOWN)
|
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)
|
if (status != PS_STATUS_SHUTDOWN)
|
||||||
{
|
|
||||||
g_state.state = APP_STATE_SHUTDOWN;
|
|
||||||
DEBUG_ERROR("failed to process spice messages");
|
DEBUG_ERROR("failed to process spice messages");
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (g_state.audioDev)
|
if (g_state.audioDev)
|
||||||
{
|
{
|
||||||
@@ -1041,12 +1041,16 @@ static int lg_run(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while(g_state.state != APP_STATE_SHUTDOWN && !purespice_ready())
|
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;
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
purespice_mouseMode(true);
|
purespice_mouseMode(true);
|
||||||
if (!lgCreateThread("spiceThread", spiceThread, NULL, &t_spice))
|
if (!lgCreateThread("spiceThread", spiceThread, NULL, &t_spice))
|
||||||
|
Submodule repos/PureSpice updated: a9664f731a...d1f86f7399
Reference in New Issue
Block a user