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:
parent
e06ce27f56
commit
73832ab0a4
@ -386,7 +386,10 @@ static FAR void *vnc_updater(FAR void *arg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUGASSERT(srcrect != NULL);
|
if (srcrect == NULL)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
updinfo("Dequeued {(%d, %d),(%d, %d)}\n",
|
updinfo("Dequeued {(%d, %d),(%d, %d)}\n",
|
||||||
srcrect->rect.x, srcrect->rect.y,
|
srcrect->rect.x, srcrect->rect.y,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user