mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] fix race with call to on_restart
This commit is contained in:
parent
757a90a643
commit
0684ff401f
@ -524,6 +524,8 @@ static int frameThread(void * unused)
|
||||
}
|
||||
|
||||
lgmpClientUnsubscribe(&queue);
|
||||
state.lgr->on_restart(state.lgrData);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1155,9 +1157,7 @@ static void toggle_video(SDL_Scancode key, void * opaque)
|
||||
state.stopVideo ? "Video Stream Disabled" : "Video Stream Enabled"
|
||||
);
|
||||
|
||||
if (state.stopVideo)
|
||||
state.lgr->on_restart(state.lgrData);
|
||||
else
|
||||
if (!state.stopVideo)
|
||||
{
|
||||
if (t_frame)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user