Fix a bug in subscribers counting
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 18 May 2017 14:57:12 +0000 (16:57 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 18 May 2017 14:57:12 +0000 (16:57 +0200)
To avoid as much as possible allocation/deallocation
when possible sequences of subscribe/unsubscribe are
encountered, the watch strucutre of events is destroyed
only when either the event or the client is destroyed.

This commit fixes a bad handling in the count of
active subscribers.

Change-Id: I3f240e69c3b21356ff07f584fe9bfb578d46732b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>

No differences found