VNC: Fix some backward logic in a wait loop

This commit is contained in:
Gregory Nutt 2016-04-23 12:32:42 -06:00
parent 0d57612d13
commit b7940e9389

View file

@ -489,7 +489,7 @@ static inline int vnc_wait_start(int display)
*/
while (g_vnc_sessions[display] == NULL ||
g_vnc_sessions[display]->state != VNCSERVER_UNINITIALIZED)
g_vnc_sessions[display]->state == VNCSERVER_UNINITIALIZED)
{
/* The server is not yet running. Wait for the server to post the FB
* semaphore. In certain error situations, the server may post the