diff options
author | Mattes D <github@xoft.cz> | 2017-01-03 21:20:01 +0100 |
---|---|---|
committer | sweetgiorni <sweet.giorni@gmail.com> | 2017-01-03 22:11:27 +0100 |
commit | ff1c0605db37bf989fc7e2c920c4852522793432 (patch) | |
tree | 6ac06e13e6df47603f30eb612370f7c09d93be5f /src | |
parent | Track skin part and main hand preferences (#3498) (diff) | |
download | cuberite-ff1c0605db37bf989fc7e2c920c4852522793432.tar cuberite-ff1c0605db37bf989fc7e2c920c4852522793432.tar.gz cuberite-ff1c0605db37bf989fc7e2c920c4852522793432.tar.bz2 cuberite-ff1c0605db37bf989fc7e2c920c4852522793432.tar.lz cuberite-ff1c0605db37bf989fc7e2c920c4852522793432.tar.xz cuberite-ff1c0605db37bf989fc7e2c920c4852522793432.tar.zst cuberite-ff1c0605db37bf989fc7e2c920c4852522793432.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/OSSupport/TCPLinkImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/TCPLinkImpl.cpp b/src/OSSupport/TCPLinkImpl.cpp index d55dc9da1..47be99a48 100644 --- a/src/OSSupport/TCPLinkImpl.cpp +++ b/src/OSSupport/TCPLinkImpl.cpp @@ -18,7 +18,7 @@ cTCPLinkImpl::cTCPLinkImpl(cTCPLink::cCallbacksPtr a_LinkCallbacks): super(a_LinkCallbacks), - m_BufferEvent(bufferevent_socket_new(cNetworkSingleton::Get().GetEventBase(), -1, BEV_OPT_CLOSE_ON_FREE | BEV_OPT_THREADSAFE)), + m_BufferEvent(bufferevent_socket_new(cNetworkSingleton::Get().GetEventBase(), -1, BEV_OPT_CLOSE_ON_FREE | BEV_OPT_THREADSAFE | BEV_OPT_DEFER_CALLBACKS | BEV_OPT_UNLOCK_CALLBACKS)), m_LocalPort(0), m_RemotePort(0), m_ShouldShutdown(false) @@ -31,7 +31,7 @@ cTCPLinkImpl::cTCPLinkImpl(cTCPLink::cCallbacksPtr a_LinkCallbacks): cTCPLinkImpl::cTCPLinkImpl(evutil_socket_t a_Socket, cTCPLink::cCallbacksPtr a_LinkCallbacks, cServerHandleImplPtr a_Server, const sockaddr * a_Address, socklen_t a_AddrLen): super(a_LinkCallbacks), - m_BufferEvent(bufferevent_socket_new(cNetworkSingleton::Get().GetEventBase(), a_Socket, BEV_OPT_CLOSE_ON_FREE | BEV_OPT_THREADSAFE)), + m_BufferEvent(bufferevent_socket_new(cNetworkSingleton::Get().GetEventBase(), a_Socket, BEV_OPT_CLOSE_ON_FREE | BEV_OPT_THREADSAFE | BEV_OPT_DEFER_CALLBACKS | BEV_OPT_UNLOCK_CALLBACKS)), m_Server(a_Server), m_LocalPort(0), m_RemotePort(0), |