1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Code cleanup

This commit is contained in:
Ivan Savenko
2024-01-26 17:40:31 +02:00
parent 322c5faf63
commit eaca128c99
10 changed files with 32 additions and 30 deletions

View File

@@ -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));
}