mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-25 13:30:43 +00:00
handle udp packets like usual packets
This commit is contained in:
1 file changed
+3
@@ -235,9 +235,12 @@ void Network::udp_read_main() {
|
|||||||
};
|
};
|
||||||
client->tcp_write(state_change);
|
client->tcp_write(state_change);
|
||||||
client->state = bmp::State::ModDownload;
|
client->state = bmp::State::ModDownload;
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
beammp_warnf("Received magic for client who doesn't exist anymore: {}. Ignoring.", id);
|
beammp_warnf("Received magic for client who doesn't exist anymore: {}. Ignoring.", id);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
handle_packet(m_udp_endpoints->at(ep), packet);
|
||||||
}
|
}
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
beammp_errorf("Failed to UDP read: {}", e.what());
|
beammp_errorf("Failed to UDP read: {}", e.what());
|
||||||
|
|||||||
Reference in new issue
Block a user