From 8c2a77e84e152e07a293a15157564bf86bc34628 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 25 Jul 2021 15:09:48 +1000 Subject: [PATCH] [client] don't skip the first frame if we do not yet have a frame A frame serial of `0` is valid and will happen if either the host app has just started, or the serial has overflowed. --- client/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main.c b/client/src/main.c index ed74d97a..9e7989aa 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -499,7 +499,7 @@ int main_frameThread(void * unused) // ignore any repeated frames, this happens when a new client connects to // the same host application. - if (frame->frameSerial == frameSerial) + if (frame->frameSerial == frameSerial && g_state.formatValid) { lgmpClientMessageDone(queue); continue;