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