use of org.eclipse.smarthome.binding.bluetooth.BluetoothAdapter in project smarthome by eclipse.
the class BlueZHandlerFactory method removeHandler.
@Override
protected synchronized void removeHandler(ThingHandler thingHandler) {
if (thingHandler instanceof BluetoothAdapter) {
UID uid = ((BluetoothAdapter) thingHandler).getUID();
ServiceRegistration<?> serviceReg = this.serviceRegs.remove(uid);
if (serviceReg != null) {
serviceReg.unregister();
}
}
}
Aggregations