mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-29 01:56:27 +00:00
[client] fix hang when trying to terminate an unconnected client
This commit is contained in:
parent
6b2e78acdf
commit
c1fd6552d2
@ -369,6 +369,8 @@ static int frameThread(void * unused)
|
|||||||
|
|
||||||
SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
|
SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
|
||||||
lgWaitEvent(e_startup, TIMEOUT_INFINITE);
|
lgWaitEvent(e_startup, TIMEOUT_INFINITE);
|
||||||
|
if (!state.running)
|
||||||
|
return 0;
|
||||||
|
|
||||||
// subscribe to the frame queue
|
// subscribe to the frame queue
|
||||||
while(state.running)
|
while(state.running)
|
||||||
@ -1504,7 +1506,10 @@ static void lg_shutdown()
|
|||||||
state.running = false;
|
state.running = false;
|
||||||
|
|
||||||
if (t_render)
|
if (t_render)
|
||||||
|
{
|
||||||
|
lgSignalEvent(e_startup);
|
||||||
lgJoinThread(t_render, NULL);
|
lgJoinThread(t_render, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
lgmpClientFree(&state.lgmp);
|
lgmpClientFree(&state.lgmp);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user