coap_threadsafe.c: Fix CID 1566426

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2024-02-12 14:00:18 +00:00
1 parent 224aa74a03
commit bfbfd69ff5
1 file changed
+2
+2
View File
@@ -416,6 +416,8 @@ coap_persist_startup(coap_context_t *context,
void
coap_persist_stop(coap_context_t *context) {
if (!context)
return;
coap_lock_lock(context, return);
coap_persist_stop_locked(context);
coap_lock_unlock(context);