mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
handle udp packets like usual packets
This commit is contained in:
parent
9ea0931e13
commit
dbab9eb894
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user