From 1c05f9ad6af7a93c01d7b7107a76da860d1c6c34 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 21 Nov 2018 08:25:28 +0100 Subject: [PATCH] fixed server registration again --- src/engine/shared/network_server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/shared/network_server.cpp b/src/engine/shared/network_server.cpp index 0be053f79..8996a6dfb 100644 --- a/src/engine/shared/network_server.cpp +++ b/src/engine/shared/network_server.cpp @@ -211,6 +211,8 @@ int CNetServer::Recv(CNetChunk *pChunk, TOKEN *pResponseToken) CNetBase::SendControlMsg(m_Socket, &Addr, m_RecvUnpacker.m_Data.m_ResponseToken, 0, NET_CTRLMSG_CLOSE, FullMsg, sizeof(FullMsg)); } } + else if(m_RecvUnpacker.m_Data.m_aChunkData[0] == NET_CTRLMSG_TOKEN) + m_TokenCache.AddToken(&Addr, m_RecvUnpacker.m_Data.m_ResponseToken, false); } else if(m_RecvUnpacker.m_Data.m_Flags&NET_PACKETFLAG_CONNLESS) {