Make backend die if asked to send a message while it's processing a previous one
This commit is contained in:
parent
ed79daeeb0
commit
ed6fb6c624
|
@ -441,6 +441,10 @@ void read_status(void) {
|
|||
}
|
||||
|
||||
void read_message(void) {
|
||||
if (own_message_send_state != IDLE) {
|
||||
errx(1, "Frontend sent a new message while we are still processing the old one");
|
||||
}
|
||||
|
||||
unsigned char mac[6];
|
||||
readallx(0, mac, sizeof(mac));
|
||||
|
||||
|
|
Loading…
Reference in New Issue