Skip to content

Commit

Permalink
[tado] Prevent "handler disposed" warnings on shutdown (openhab#10550)
Browse files Browse the repository at this point in the history
* [tado] prevent "the handler was already disposed" warnings on shutdown

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
  • Loading branch information
andrewfg authored Apr 22, 2021
1 parent fbcc8e1 commit 5cd50f6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
*
* @author Dennis Frommknecht - Initial contribution
* @author Andrew Fiddian-Green - Added Low Battery Alarm, A/C Power and Open Window channels
*
*
*/
public class TadoZoneHandler extends BaseHomeThingHandler {
private Logger logger = LoggerFactory.getLogger(TadoZoneHandler.class);
Expand Down Expand Up @@ -185,6 +185,11 @@ public void initialize() {
}
}

@Override
public void dispose() {
cancelScheduledZoneStateUpdate();
}

@Override
public void bridgeStatusChanged(ThingStatusInfo bridgeStatusInfo) {
if (bridgeStatusInfo.getStatus() == ThingStatus.ONLINE) {
Expand Down

0 comments on commit 5cd50f6

Please sign in to comment.