Skip to content

Commit

Permalink
handle udp packets like usual packets
Browse files Browse the repository at this point in the history
  • Loading branch information
lionkor committed Jan 16, 2024
1 parent 9ea0931 commit dbab9eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit dbab9eb

Please sign in to comment.