Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Hue binding: fix 1880 (#1899)
Browse files Browse the repository at this point in the history
Member bridgeHandler was not reset to null in dispose().

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
  • Loading branch information
lolodomo authored and maggu2810 committed Jul 25, 2016
1 parent 30b19bf commit d7d7f3c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void bridgeStatusChanged(ThingStatusInfo bridgeStatusInfo) {
}

private void initializeThing(ThingStatus bridgeStatus) {
logger.debug("initializeThing {}", bridgeStatus);
logger.debug("initializeThing thing {} bridge status {}", getThing().getUID(), bridgeStatus);
final String configLightId = (String) getConfig().get(LIGHT_ID);
if (configLightId != null) {
lightId = configLightId;
Expand Down Expand Up @@ -160,7 +160,8 @@ public void dispose() {
if (lightId != null) {
HueBridgeHandler bridgeHandler = getHueBridgeHandler();
if (bridgeHandler != null) {
getHueBridgeHandler().unregisterLightStatusListener(this);
bridgeHandler.unregisterLightStatusListener(this);
this.bridgeHandler = null;
}
lightId = null;
}
Expand Down

0 comments on commit d7d7f3c

Please sign in to comment.