bluetooth connection fix

master
nymea 2019-08-08 17:39:53 +02:00
parent 49dd8b0670
commit 82a8f9effb
1 changed files with 3 additions and 1 deletions

View File

@ -142,7 +142,9 @@ void DevicePluginSenic::deviceRemoved(Device *device)
Nuimo *nuimo = m_nuimos.key(device);
m_nuimos.take(nuimo);
delete nuimo;
hardwareManager()->bluetoothLowEnergyManager()->unregisterDevice(nuimo->bluetoothDevice());
nuimo->deleteLater();
if (myDevices().isEmpty()) {
hardwareManager()->pluginTimerManager()->unregisterTimer(m_reconnectTimer);