mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[host] app: zero the new client sub count
If a new client connects but there has not been a capture timeout the new client count wont be zeroed on a valid capture. If there is a timeout later the host will still think there is a new client and re-send a frame when it should not. This fixes this by reading the value on a valid frame which zeros the new subs count.
This commit is contained in:
parent
9c5e34df0f
commit
9969896876
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ static bool sendFrame(void)
|
||||||
switch(app.iface->waitFrame(&frame, app.maxFrameSize))
|
switch(app.iface->waitFrame(&frame, app.maxFrameSize))
|
||||||
{
|
{
|
||||||
case CAPTURE_RESULT_OK:
|
case CAPTURE_RESULT_OK:
|
||||||
|
// reading the new subs count zeros it
|
||||||
|
lgmpHostQueueNewSubs(app.frameQueue);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CAPTURE_RESULT_REINIT:
|
case CAPTURE_RESULT_REINIT:
|
||||||
|
|
Loading…
Reference in a new issue