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