get_destination_status: panic on wrong reply

pull/177/head
mwojcik 2022-03-25 17:33:40 +08:00
parent 6772344053
commit b80cb3b288
1 changed files with 2 additions and 2 deletions

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)
};
}