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:
Pawel Winogrodzki committed 2017-03-10 17:55:34 -08:00
1 parent eb1fae94ed
commit 445383a0b5
1 file changed
+1 -1
+1 -1
View File
@@ -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 */
}
}