minor bugfix newSock <-> acceptedSocket

This commit is contained in:
q4z1
2018-10-17 16:39:49 +02:00
parent f920d5f1c8
commit f5688e01b0
+1 -1
View File
@@ -125,7 +125,7 @@ protected:
// Deprecated non_blocking_io command // Deprecated non_blocking_io command
/*boost::asio::socket_base::non_blocking_io command(true); /*boost::asio::socket_base::non_blocking_io command(true);
newSock->io_control(command);*/ newSock->io_control(command);*/
newSock->non_blocking(true); acceptedSocket->non_blocking(true);
acceptedSocket->set_option(typename P::no_delay(true)); acceptedSocket->set_option(typename P::no_delay(true));
acceptedSocket->set_option(boost::asio::socket_base::keep_alive(true)); acceptedSocket->set_option(boost::asio::socket_base::keep_alive(true));
boost::shared_ptr<SessionData> sessionData(new SessionData(acceptedSocket, m_lobbyThread->GetNextSessionId(), m_lobbyThread->GetSessionDataCallback(), *m_ioService)); boost::shared_ptr<SessionData> sessionData(new SessionData(acceptedSocket, m_lobbyThread->GetNextSessionId(), m_lobbyThread->GetSessionDataCallback(), *m_ioService));