diff options
author | Mattes D <github@xoft.cz> | 2015-01-18 15:40:39 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-22 20:13:03 +0100 |
commit | 00253403b3850911833638a960f3e7d0ea46e1ce (patch) | |
tree | 3a3e80719cb6249e57684f67c64fa78e9f61bd68 /src/OSSupport/ServerHandleImpl.cpp | |
parent | cNetwork: Fixed race conditions with lookups; proper shutdown. (diff) | |
download | cuberite-00253403b3850911833638a960f3e7d0ea46e1ce.tar cuberite-00253403b3850911833638a960f3e7d0ea46e1ce.tar.gz cuberite-00253403b3850911833638a960f3e7d0ea46e1ce.tar.bz2 cuberite-00253403b3850911833638a960f3e7d0ea46e1ce.tar.lz cuberite-00253403b3850911833638a960f3e7d0ea46e1ce.tar.xz cuberite-00253403b3850911833638a960f3e7d0ea46e1ce.tar.zst cuberite-00253403b3850911833638a960f3e7d0ea46e1ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/ServerHandleImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/ServerHandleImpl.cpp b/src/OSSupport/ServerHandleImpl.cpp index c399c2279..866aa01be 100644 --- a/src/OSSupport/ServerHandleImpl.cpp +++ b/src/OSSupport/ServerHandleImpl.cpp @@ -253,7 +253,7 @@ void cServerHandleImpl::Callback(evconnlistener * a_Listener, evutil_socket_t a_ ASSERT(Self != nullptr); // Create a new cTCPLink for the incoming connection: - cTCPLinkImplPtr Link = std::make_shared<cTCPLinkImpl>(a_Socket, Self->m_LinkCallbacks, Self, a_Addr, a_Len); + cTCPLinkImplPtr Link = std::make_shared<cTCPLinkImpl>(a_Socket, Self->m_LinkCallbacks, Self, a_Addr, static_cast<socklen_t>(a_Len)); { cCSLock Lock(Self->m_CS); Self->m_Connections.push_back(Link); |