summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-01-03 21:20:01 +0100
committerGitHub <noreply@github.com>2017-01-03 21:20:01 +0100
commit8dd1e5651592d2d2845420ed288667162728ea1f (patch)
treea0826af4fd3251906ab955e4162efd25b3a21036
parentTrack skin part and main hand preferences (#3498) (diff)
downloadcuberite-8dd1e5651592d2d2845420ed288667162728ea1f.tar
cuberite-8dd1e5651592d2d2845420ed288667162728ea1f.tar.gz
cuberite-8dd1e5651592d2d2845420ed288667162728ea1f.tar.bz2
cuberite-8dd1e5651592d2d2845420ed288667162728ea1f.tar.lz
cuberite-8dd1e5651592d2d2845420ed288667162728ea1f.tar.xz
cuberite-8dd1e5651592d2d2845420ed288667162728ea1f.tar.zst
cuberite-8dd1e5651592d2d2845420ed288667162728ea1f.zip
-rw-r--r--src/OSSupport/TCPLinkImpl.cpp4
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),