handle udp packets like usual packets

This commit is contained in:
Lion Kortlepel 2024-01-16 01:03:03 +01:00
parent 9ea0931e13
commit dbab9eb894
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -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());