mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
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:
committed by
Abdelatif Guettouche
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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user