Issue #279 has been updated by Stefano Lenzi.

Category set to zigbee.zcl.library
Status changed from New to In Progress
Assignee set to Stefano Lenzi
Priority changed from Normal to Low
Target version set to org.aaloa.zb4osgi.zigbee.zcl.library-0.9.0


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

Author: Philipp  Buluschek
Status: In Progress
Priority: Low
Assignee: Stefano Lenzi
Category: zigbee.zcl.library
Target version: org.aaloa.zb4osgi.zigbee.zcl.library-0.9.0
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