1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Reapply "Simple implementation of heartbeat package"

This reverts commit ede92c1a9c.
This commit is contained in:
Ivan Savenko
2024-05-11 14:32:43 +00:00
parent 4c3aac8f19
commit 67604e1e01
4 changed files with 28 additions and 6 deletions

View File

@ -39,7 +39,7 @@ void NetworkServer::connectionAccepted(std::shared_ptr<NetworkSocket> upcomingCo
}
logNetwork->info("We got a new connection! :)");
auto connection = std::make_shared<NetworkConnection>(*this, upcomingConnection);
auto connection = std::make_shared<NetworkConnection>(*this, upcomingConnection, io);
connections.insert(connection);
connection->start();
listener.onNewConnection(connection);