mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Code cleanup
This commit is contained in:
@@ -27,7 +27,7 @@ void NetworkServer::start(uint16_t port)
|
||||
|
||||
void NetworkServer::startAsyncAccept()
|
||||
{
|
||||
std::shared_ptr<NetworkSocket> upcomingConnection = std::make_shared<NetworkSocket>(*io);
|
||||
auto upcomingConnection = std::make_shared<NetworkSocket>(*io);
|
||||
acceptor->async_accept(*upcomingConnection, std::bind(&NetworkServer::connectionAccepted, this, upcomingConnection, _1));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user