summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/ServerHandleImpl.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-02-18 09:34:33 +0100
committerMattes D <github@xoft.cz>2015-02-18 09:35:14 +0100
commit612637ab2e3c6e63124053cce770bf406d06c742 (patch)
tree3fc252450113b945686549e13d8b6e19705275c3 /src/OSSupport/ServerHandleImpl.cpp
parentMerge pull request #1750 from tommysanterre/gitignore (diff)
downloadcuberite-612637ab2e3c6e63124053cce770bf406d06c742.tar
cuberite-612637ab2e3c6e63124053cce770bf406d06c742.tar.gz
cuberite-612637ab2e3c6e63124053cce770bf406d06c742.tar.bz2
cuberite-612637ab2e3c6e63124053cce770bf406d06c742.tar.lz
cuberite-612637ab2e3c6e63124053cce770bf406d06c742.tar.xz
cuberite-612637ab2e3c6e63124053cce770bf406d06c742.tar.zst
cuberite-612637ab2e3c6e63124053cce770bf406d06c742.zip
Diffstat (limited to 'src/OSSupport/ServerHandleImpl.cpp')
-rw-r--r--src/OSSupport/ServerHandleImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/ServerHandleImpl.cpp b/src/OSSupport/ServerHandleImpl.cpp
index 72092df10..44ace448b 100644
--- a/src/OSSupport/ServerHandleImpl.cpp
+++ b/src/OSSupport/ServerHandleImpl.cpp
@@ -232,7 +232,7 @@ bool cServerHandleImpl::Listen(UInt16 a_Port)
}
// Allow the port to be reused right after the socket closes:
- if (evutil_make_listen_socket_reuseable(MainSock) != 0)
+ if (evutil_make_listen_socket_reuseable(SecondSock) != 0)
{
m_ErrorCode = EVUTIL_SOCKET_ERROR();
Printf(m_ErrorMsg, "Port %d cannot be made reusable (second socket): %d (%s). Restarting the server might not work.",