From 40376697d7cc15e0dfc3c972d96dd94496873449 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 7 Jun 2020 02:17:11 +0800 Subject: [PATCH] boards/sim: Break out the thread loop instead calling pthread_exit Signed-off-by: Xiang Xiao Change-Id: I744d06d7a669067c68b74c69f3961f34673d81a0 --- boards/sim/sim/sim/src/sim_touchscreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/sim/sim/sim/src/sim_touchscreen.c b/boards/sim/sim/sim/src/sim_touchscreen.c index 5b183f07db..97dea336e2 100644 --- a/boards/sim/sim/sim/src/sim_touchscreen.c +++ b/boards/sim/sim/sim/src/sim_touchscreen.c @@ -112,7 +112,7 @@ static FAR void *sim_listener(FAR void *arg) */ fwarn("WARNING: Lost server connection: %d\n", errno); - pthread_exit(NULL); + break; } /* If we received a message, we must be connected */ @@ -125,7 +125,7 @@ static FAR void *sim_listener(FAR void *arg) } } - return NULL; /* Not-reachable */ + return NULL; } /****************************************************************************