From 7198cd81e1db3c92f99a7079e7820a6cdc51c40a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 26 Jun 2020 21:46:42 +0200 Subject: Do not do anything when unsubscribing an id that isn't in the subscription list. --- src/connectionhandler.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/connectionhandler.h') diff --git a/src/connectionhandler.h b/src/connectionhandler.h index 39f1c54..13f5d02 100644 --- a/src/connectionhandler.h +++ b/src/connectionhandler.h @@ -54,7 +54,10 @@ public: bool authenticated(clientid_t clientid); void subscribe(clientid_t clientid, nodeid_t nodeid); - void unsubscribe(clientid_t clientid, nodeid_t nodeid); + + //! Remove subscription from connection list. + //! \returns false if subscriptionid is not in the list + bool unsubscribe(clientid_t clientid, nodeid_t nodeid); SubscriberList subscriberlist(NodeIdList nodelist); -- cgit v1.2.3