diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-05 12:50:56 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-05 12:50:56 +0100 |
commit | ea750b9745aa2170d0860cac1e49a85d380b7449 (patch) | |
tree | 30c089e96c80c309c092d2760c31cc7e48626c45 /source/OSSupport | |
parent | Listening ports are now logged (diff) | |
download | cuberite-ea750b9745aa2170d0860cac1e49a85d380b7449.tar cuberite-ea750b9745aa2170d0860cac1e49a85d380b7449.tar.gz cuberite-ea750b9745aa2170d0860cac1e49a85d380b7449.tar.bz2 cuberite-ea750b9745aa2170d0860cac1e49a85d380b7449.tar.lz cuberite-ea750b9745aa2170d0860cac1e49a85d380b7449.tar.xz cuberite-ea750b9745aa2170d0860cac1e49a85d380b7449.tar.zst cuberite-ea750b9745aa2170d0860cac1e49a85d380b7449.zip |
Diffstat (limited to 'source/OSSupport')
-rw-r--r-- | source/OSSupport/SocketThreads.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/OSSupport/SocketThreads.cpp b/source/OSSupport/SocketThreads.cpp index e7061ed31..b008cf2d2 100644 --- a/source/OSSupport/SocketThreads.cpp +++ b/source/OSSupport/SocketThreads.cpp @@ -433,13 +433,13 @@ bool cSocketThreads::cSocketThread::Start(void) LOGERROR("Cannot create a Control socket for a cSocketThread (\"%s\"); continuing, but server may be unreachable from now on.", cSocket::GetLastErrorString().c_str()); return false; } - if (m_ControlSocket2.BindToLocalhostIPv4(cSocket::ANY_PORT) != 0) + if (!m_ControlSocket2.BindToLocalhostIPv4(cSocket::ANY_PORT)) { LOGERROR("Cannot bind a Control socket for a cSocketThread (\"%s\"); continuing, but server may be unreachable from now on.", cSocket::GetLastErrorString().c_str()); m_ControlSocket2.CloseSocket(); return false; } - if (m_ControlSocket2.Listen(1) != 0) + if (!m_ControlSocket2.Listen(1)) { LOGERROR("Cannot listen on a Control socket for a cSocketThread (\"%s\"); continuing, but server may be unreachable from now on.", cSocket::GetLastErrorString().c_str()); m_ControlSocket2.CloseSocket(); |