summaryrefslogtreecommitdiff
path: root/src/connectionhandler.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-06-26 21:46:42 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-06-26 21:46:42 +0200
commit7198cd81e1db3c92f99a7079e7820a6cdc51c40a (patch)
tree4621907a1354698bc323ded206de9eddd2cab889 /src/connectionhandler.h
parented9d39d488508894603bca2f134f5c4e5e7c3f80 (diff)
Do not do anything when unsubscribing an id that isn't in the subscription list.
Diffstat (limited to 'src/connectionhandler.h')
-rw-r--r--src/connectionhandler.h5
1 files changed, 4 insertions, 1 deletions
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);