boards/sim: Break out the thread loop instead calling pthread_exit
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I744d06d7a669067c68b74c69f3961f34673d81a0
This commit is contained in:
parent
a90f657743
commit
40376697d7
@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user