mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] app: fix infinate loop introduced in the last commit
This commit is contained in:
parent
ce459c24ce
commit
3ce3b573a3
@ -148,12 +148,12 @@ static bool sendFrame(void)
|
|||||||
bool repeatFrame = false;
|
bool repeatFrame = false;
|
||||||
|
|
||||||
//wait until there is room in the queue
|
//wait until there is room in the queue
|
||||||
while(app.state == APP_STATE_RUNNING)
|
while(app.state == APP_STATE_RUNNING &&
|
||||||
if(lgmpHostQueuePending(app.frameQueue) == LGMP_Q_FRAME_LEN)
|
lgmpHostQueuePending(app.frameQueue) == LGMP_Q_FRAME_LEN)
|
||||||
{
|
{
|
||||||
usleep(1);
|
usleep(1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (app.state != APP_STATE_RUNNING)
|
if (app.state != APP_STATE_RUNNING)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user