From: Paweł Szewczyk Date: Wed, 11 Jul 2018 13:50:41 +0000 (+0200) Subject: Finish output thread properly X-Git-Tag: submit/tizen/20180720.032739~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fbb56ebaadcf185f7f0b4333143c3e35e10ea4e;p=sdk%2Ftarget%2Fsdbd.git Finish output thread properly 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 --- 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);