Make backend die if asked to send a message while it's processing a previous one

This commit is contained in:
Juhani Krekelä 2019-07-15 01:01:16 +03:00
parent ed79daeeb0
commit ed6fb6c624
1 changed files with 4 additions and 0 deletions

View File

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