fflush(3) ack info too

This commit is contained in:
Juhani Krekelä 2019-07-13 19:39:11 +03:00
parent c7a773958d
commit fde0630217
1 changed files with 4 additions and 0 deletions

View File

@ -844,6 +844,10 @@ void handle_ack(const unsigned char source_mac[6], const unsigned char *data, si
err(1, "printf");
}
if (fflush(stdout) == EOF) {
err(1, "fflush");
}
if (own_message_send_state == WAITING_ACK && msgid == own_message_msgid) {
own_message_send_state = IDLE;
}