get_destination_status: panic on wrong reply
This commit is contained in:
parent
6772344053
commit
b80cb3b288
@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user