summaryrefslogtreecommitdiffstats
path: root/libvncclient/listen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncclient/listen.c')
-rw-r--r--libvncclient/listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncclient/listen.c b/libvncclient/listen.c
index d1e98ae..7a0501c 100644
--- a/libvncclient/listen.c
+++ b/libvncclient/listen.c
@@ -127,7 +127,7 @@ listenForIncomingConnectionsNoFork(rfbClient* client, int timeout)
client->listenSpecified = TRUE;
- if (! client->listenSock)
+ if (client->listenSock < 0)
{
client->listenSock = ListenAtTcpPort(client->listenPort);