Skip to content

Commit

Permalink
[OccasionsManager] automatic unsubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthou committed Jun 26, 2024
1 parent 70e9e25 commit 6551b1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Occasions/OccasionsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ namespace mementar {
msg.id = (int)id;
msg.data = triplet.toString();
msg.last = subscription_.isFinished(id);
if(msg.last)
subscription_.unsubscribe(id);
pub_.publish(msg);
}
}
Expand Down

0 comments on commit 6551b1e

Please sign in to comment.