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:
parent
e06ce27f56
commit
73832ab0a4
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue