summaryrefslogtreecommitdiff
path: root/lib/Socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r--lib/Socket.cc2
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;
}
}