From bc4473b275cc019295bdf89369eec50d198fd8cb Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 18 Aug 2015 11:13:38 +0200 Subject: [PATCH] Fixed that netconn_thread_cleanup() did not call LWIP_NETCONN_THREAD_SEM_FREE() (!= vs ==) --- src/api/api_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api_lib.c b/src/api/api_lib.c index e7cadb69..21db1355 100644 --- a/src/api/api_lib.c +++ b/src/api/api_lib.c @@ -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(); }