Issue #279 has been reported by Philipp  Buluschek.

----------------------------------------
Bug #279: SubscriptionBase.isActive() does not return the expected result
http://zb4o.aaloa.org/redmine/issues/279

Author: Philipp  Buluschek
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 
Has a patch: No
Has license agreement signed: No


In SubscriptionBase.updateConfiguration() there is a check whether the 
subscription "isActive" before sending a configuration request to the device.

The isActive() method returns "true", if it there are no subscribers ( 
listeners.size()==0 ). So the configuration is only updated when no listeners 
are registered. This seems reverse to the intended behavior and also 
contradicts the method comment.

If it has listeners, do send the update.
If it has no listeners, do not send, or even send a subscription cancellation...

Note that isActive() seems to be used with this wrong behavior elsewhere in the 
code...



-- 
DO NOT ANSWER TO THIS E-MAIL ADDRESS, NO ONE WILL READ IT. PLEASE WRITE TO 
[email protected]
ZigBee 4 OSGi - Redmine E-Mail Notificatioon
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://zb4o.aaloa.org/redmine
_______________________________________________
Dev mailing list
[email protected]
http://zb4osgi.aaloa.org/mailman/listinfo/dev

Reply via email to