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; } /****************************************************************************