summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-01-12 17:28:56 +0100
committerMattes D <github@xoft.cz>2015-01-22 20:12:51 +0100
commit19121d2962694468aa32cdfe839af7b0ec48acff (patch)
treee19651472c427b147f94b5eb30cdacbc78aff358
parentcNetwork: Added error logging to server socket creation. (diff)
downloadcuberite-19121d2962694468aa32cdfe839af7b0ec48acff.tar
cuberite-19121d2962694468aa32cdfe839af7b0ec48acff.tar.gz
cuberite-19121d2962694468aa32cdfe839af7b0ec48acff.tar.bz2
cuberite-19121d2962694468aa32cdfe839af7b0ec48acff.tar.lz
cuberite-19121d2962694468aa32cdfe839af7b0ec48acff.tar.xz
cuberite-19121d2962694468aa32cdfe839af7b0ec48acff.tar.zst
cuberite-19121d2962694468aa32cdfe839af7b0ec48acff.zip
-rw-r--r--src/OSSupport/Network.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/OSSupport/Network.cpp b/src/OSSupport/Network.cpp
index b916fd804..7a4e92610 100644
--- a/src/OSSupport/Network.cpp
+++ b/src/OSSupport/Network.cpp
@@ -823,7 +823,9 @@ bool cServerHandleImpl::Listen(UInt16 a_Port)
if (!IsValidSocket(MainSock))
{
// Failed to create IPv6 socket, create an IPv4 one instead:
+ #ifdef DEBUG
int err = EVUTIL_SOCKET_ERROR();
+ #endif
LOGD("Failed to create IPv6 MainSock: %d (%s)", err, evutil_socket_error_to_string(err));
MainSock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (!IsValidSocket(MainSock))