[insteon] Ignore missing network handler when disposing a device (#12169)
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
This commit is contained in:
parent
8794ff860e
commit
37c028ddc0
@ -394,7 +394,15 @@ public class InsteonDeviceHandler extends BaseThingHandler {
|
|||||||
logger.debug("removed {} address = {}", getThing().getUID().getAsString(), address);
|
logger.debug("removed {} address = {}", getThing().getUID().getAsString(), address);
|
||||||
}
|
}
|
||||||
|
|
||||||
getInsteonNetworkHandler().disposed(getThing().getUID());
|
InsteonNetworkHandler handler = null;
|
||||||
|
try {
|
||||||
|
handler = getInsteonNetworkHandler();
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
|
}
|
||||||
|
|
||||||
|
if (handler != null) {
|
||||||
|
handler.disposed(getThing().getUID());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
super.dispose();
|
super.dispose();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user