diff options
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r-- | lib/Socket.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Socket.cc b/lib/Socket.cc index 5d80783..d3d7c19 100644 --- a/lib/Socket.cc +++ b/lib/Socket.cc @@ -104,7 +104,7 @@ bool Socket::Connect(String host, int port) { bool Socket::Listen(void) { if (!listening && !connected) { - if (listen(GetHandle(), 10)) { + if (!listen(GetHandle(), 10)) { listening = true; } } |