From 3fbb56ebaadcf185f7f0b4333143c3e35e10ea4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Szewczyk?= Date: Wed, 11 Jul 2018 15:50:41 +0200 Subject: [PATCH] Finish output thread properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The output thread needs to clean up and kick transport even when it's ended without an error. Change-Id: I3f03581ed5dc9c1c67de1dc8a6acace9f3f5125b Signed-off-by: Paweł Szewczyk --- src/transport.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/transport.c b/src/transport.c index 5769a2a..e931f67 100644 --- a/src/transport.c +++ b/src/transport.c @@ -327,9 +327,7 @@ static void *output_thread(void *_t) if(write_packet(t->fd, t->serial, &p)) { put_apacket(p); E("%s: failed to write SYNC apacket to transport", t->serial); - goto oops; } - return 0; oops: D("%s: transport output thread is exiting, fd %d, sfd %d\n", t->serial, t->fd, t->sfd); -- 2.34.1