mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Fixed that netconn_thread_cleanup() did not call LWIP_NETCONN_THREAD_SEM_FREE() (!= vs ==)
This commit is contained in:
parent
43c38a5aeb
commit
bc4473b275
@ -880,7 +880,7 @@ void netconn_thread_init(void)
|
|||||||
void netconn_thread_cleanup(void)
|
void netconn_thread_cleanup(void)
|
||||||
{
|
{
|
||||||
sys_sem_t *sem = LWIP_NETCONN_THREAD_SEM_GET();
|
sys_sem_t *sem = LWIP_NETCONN_THREAD_SEM_GET();
|
||||||
if (sem == SYS_SEM_NULL) {
|
if (sem != SYS_SEM_NULL) {
|
||||||
/* call free only once */
|
/* call free only once */
|
||||||
LWIP_NETCONN_THREAD_SEM_FREE();
|
LWIP_NETCONN_THREAD_SEM_FREE();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user