Skip to content

Commit

Permalink
fix for bug #107
Browse files Browse the repository at this point in the history
  • Loading branch information
sagIoTPower committed Apr 30, 2024
1 parent c46ca3f commit c26cce7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,10 @@ public void upsertActiveSubscription(Mapping mapping) {
if (!getActiveSubscriptions().containsKey(mapping.subscriptionTopic)) {
getActiveSubscriptions().put(mapping.subscriptionTopic, new MutableInt(0));
}
if (!getMappingsDeployed().containsKey(mapping.ident)) {
if (mapping.active) {
getMappingsDeployed().put(mapping.ident, mapping);
} else {
getMappingsDeployed().remove(mapping.ident);
}
MutableInt updatedMappingSubs = getActiveSubscriptions()
.get(mapping.subscriptionTopic);
Expand Down

0 comments on commit c26cce7

Please sign in to comment.