mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-11 03:10:40 +03:00
Fixing coap_remove_failed_observers() loop.
The loop was always exiting after analysing the first observer, so in case there were more and the first one on the list of observers didn't match the one we wanted to remove, the observer never got removed. Signed-off-by: Pawel Winogrodzki <pawelwi@microsoft.com>
This commit is contained in:
1 parent
eb1fae94ed
commit
445383a0b5
1 file changed
+1
-1
+1
-1
@@ -739,8 +739,8 @@ coap_remove_failed_observers(coap_context_t *context,
|
||||
|
||||
COAP_FREE_TYPE(subscription, obs);
|
||||
}
|
||||
break; /* break loop if observer was found */
|
||||
}
|
||||
break; /* break loop if observer was found */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user