mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 02:30:54 +00:00
handle udp packets like usual packets
This commit is contained in:
@@ -235,9 +235,12 @@ void Network::udp_read_main() {
|
||||
};
|
||||
client->tcp_write(state_change);
|
||||
client->state = bmp::State::ModDownload;
|
||||
continue;
|
||||
} else {
|
||||
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) {
|
||||
beammp_errorf("Failed to UDP read: {}", e.what());
|
||||
|
||||
Reference in New Issue
Block a user