diff --git a/include/coap3/coap_threadsafe_internal.h b/include/coap3/coap_threadsafe_internal.h index 00334020..b49fd207 100644 --- a/include/coap3/coap_threadsafe_internal.h +++ b/include/coap3/coap_threadsafe_internal.h @@ -355,7 +355,6 @@ int coap_lock_lock_func(void); #define coap_lock_callback_ret(r,c,func) do { \ coap_lock_check_locked(c); \ global_lock.in_callback++; \ - global_lock.in_callback++; \ (r) = func; \ global_lock.in_callback--; \ } while (0)