Skip to content

Commit

Permalink
clearing SubscriptionList entries in shadowActionAcks after subscript…
Browse files Browse the repository at this point in the history
…ion failure

Fixes #62
  • Loading branch information
vareddy committed Oct 17, 2017
1 parent 9b84c7b commit ca06334
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aws_iot_shadow_records.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ IoT_Error_t subscribeToShadowActionAcks(const char *pThingName, ShadowActions_t
if(clearBothEntriesFromList) {
if(indexAcceptedSubList >= 0) {
SubscriptionList[indexAcceptedSubList].isFree = true;
} else if(indexRejectedSubList >= 0) {
}
if(indexRejectedSubList >= 0) {
SubscriptionList[indexRejectedSubList].isFree = true;
}
if(SubscriptionList[indexAcceptedSubList].count == 1) {
Expand Down

0 comments on commit ca06334

Please sign in to comment.