mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-07-18 00:43:48 +02:00
Merge remote-tracking branch 'origin/fix-simulation-device-removal'
This commit is contained in:
commit
ee48fdf247
@ -62,9 +62,12 @@ DeviceManager::DeviceSetupStatus DevicePluginSimulation::setupDevice(Device *dev
|
||||
|
||||
void DevicePluginSimulation::deviceRemoved(Device *device)
|
||||
{
|
||||
QTimer *t = m_simulationTimers.take(device);
|
||||
t->stop();
|
||||
t->deleteLater();
|
||||
// Clean up any timers we may have for this device
|
||||
if (m_simulationTimers.contains(device)) {
|
||||
QTimer *t = m_simulationTimers.take(device);
|
||||
t->stop();
|
||||
t->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
DeviceManager::DeviceError DevicePluginSimulation::executeAction(Device *device, const Action &action)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user