16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-17 23:39:18 +02:00

desync info tweaks

This commit is contained in:
milek7
2019-11-17 14:02:24 +01:00
parent c31af696c4
commit a16cf6cdab
4 changed files with 14 additions and 4 deletions

View File

@@ -243,7 +243,11 @@ void network::client::handle_message(std::shared_ptr<connection> conn, const mes
WriteLog("net: accept received", logtype::net);
}
else if (msg.type == message::FRAME_INFO) {
if (conn->state != connection::ACTIVE)
return;
if (msg.type == message::FRAME_INFO) {
resume_frame_counter++;
auto delta = dynamic_cast<const frame_info&>(msg);