mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-04 01:34:13 +00:00
[host] app: fix infinate loop introduced in the last commit
This commit is contained in:
@@ -148,12 +148,12 @@ static bool sendFrame(void)
|
||||
bool repeatFrame = false;
|
||||
|
||||
//wait until there is room in the queue
|
||||
while(app.state == APP_STATE_RUNNING)
|
||||
if(lgmpHostQueuePending(app.frameQueue) == LGMP_Q_FRAME_LEN)
|
||||
{
|
||||
usleep(1);
|
||||
continue;
|
||||
}
|
||||
while(app.state == APP_STATE_RUNNING &&
|
||||
lgmpHostQueuePending(app.frameQueue) == LGMP_Q_FRAME_LEN)
|
||||
{
|
||||
usleep(1);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (app.state != APP_STATE_RUNNING)
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user