mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +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)
|
||||
{
|
||||
sys_sem_t *sem = LWIP_NETCONN_THREAD_SEM_GET();
|
||||
if (sem == SYS_SEM_NULL) {
|
||||
if (sem != SYS_SEM_NULL) {
|
||||
/* call free only once */
|
||||
LWIP_NETCONN_THREAD_SEM_FREE();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user