diff options
Diffstat (limited to 'libvncserver')
-rw-r--r-- | libvncserver/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c index 7ecc842..a045d4c 100644 --- a/libvncserver/main.c +++ b/libvncserver/main.c @@ -593,7 +593,7 @@ listenerRun(void *data) len = sizeof (peer); if (FD_ISSET(screen->listenSock, &listen_fds)) client_fd = accept(screen->listenSock, (struct sockaddr*)&peer, &len); - if (FD_ISSET(screen->listen6Sock, &listen_fds)) + else if (FD_ISSET(screen->listen6Sock, &listen_fds)) client_fd = accept(screen->listen6Sock, (struct sockaddr*)&peer, &len); if(client_fd >= 0) |