1
0
Fork 0
forked from nuttx/nuttx-update

vnc server: Fix that vnc_updater thread exited caused by readed a null data

When updating the full-screen data, sq_ init() will clear the updqueue and add just one new full-screen data to the updqueue. So when the vnc_updater thread is awakened, it may read a null data due to multiple reading, leading to vnc_updater thread exited , which is not expected.

Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
This commit is contained in:
jianglianfang 2023-05-18 16:39:34 +08:00 committed by Xiang Xiao
parent e06ce27f56
commit 73832ab0a4

View file

@ -386,7 +386,10 @@ static FAR void *vnc_updater(FAR void *arg)
break;
}
DEBUGASSERT(srcrect != NULL);
if (srcrect == NULL)
{
continue;
}
updinfo("Dequeued {(%d, %d),(%d, %d)}\n",
srcrect->rect.x, srcrect->rect.y,