From 593603941876abd69288ff6bc92359634a565be4 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 13 Jul 2013 12:29:57 +0200 Subject: [PATCH] don't abort on write-error when sending queued packets --- hmland.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hmland.c b/hmland.c index 1ccc843..d91026a 100644 --- a/hmland.c +++ b/hmland.c @@ -290,7 +290,7 @@ static int hmlan_format_out(uint8_t *buf, int buf_len, void *data) return 0; } - /* Send al queued packets */ + /* Send all queued packets */ if (wait_for_h) { struct queued_rx *curr_rx = qrx; struct queued_rx *last_rx; @@ -308,7 +308,6 @@ static int hmlan_format_out(uint8_t *buf, int buf_len, void *data) w = write(fd, curr_rx->rx, curr_rx->len); if (w <= 0) { perror("write"); - return 0; } last_rx = curr_rx; curr_rx = curr_rx->next; -- 2.39.2