make unimplemented flag type not crash

This commit is contained in:
DJMrTV 2025-01-22 20:29:54 +01:00
commit f6d6ffa6fb

View file

@ -141,11 +141,11 @@ impl SocketImpl {
if //((packet.header.types_and_flags.get_flags() & flags::NEED_ACK) != 0) ||
//((packet.header.types_and_flags.get_flags() & flags::ACK) != 0) ||
((packet.header.types_and_flags.get_flags() & flags::RELIABLE) != 0) ||
//((packet.header.types_and_flags.get_flags() & flags::RELIABLE) != 0) ||
((packet.header.types_and_flags.get_flags() & flags::MULTI_ACK) != 0) {
let copy = packet.header.types_and_flags;
unimplemented!("{:?}", copy)
error!("{:?}", copy)
}