Fixed that netconn_thread_cleanup() did not call LWIP_NETCONN_THREAD_SEM_FREE() (!= vs ==)

This commit is contained in:
goldsimon 2015-08-18 11:13:38 +02:00
parent 43c38a5aeb
commit bc4473b275

View File

@ -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();
}