get_destination_status: panic on wrong reply

This commit is contained in:
mwojcik 2022-03-25 17:33:40 +08:00
parent 6772344053
commit b80cb3b288

View File

@ -10,8 +10,8 @@ pub extern fn get_destination_status(destination: i32) -> bool {
core1_rx.recv()
};
return match reply {
Message::UpDestinationsReply(true) => true,
_ => false
Message::UpDestinationsReply(x) => x,
_ => panic!("received unexpected reply to UpDestinationsRequest: {:?}", reply)
};
}