Commit 70d81ad3 authored by Don Gagne's avatar Don Gagne

Disconnect timer on link disconnect

This prevents mavlink signals from being emitted after link is
disconnected
parent 09818685
...@@ -137,6 +137,10 @@ void MockLink::run(void) ...@@ -137,6 +137,10 @@ void MockLink::run(void)
_timer50HzTasks.start(20); _timer50HzTasks.start(20);
exec(); exec();
QObject::disconnect(&_timer1HzTasks, &QTimer::timeout, this, &MockLink::_run1HzTasks);
QObject::disconnect(&_timer10HzTasks, &QTimer::timeout, this, &MockLink::_run10HzTasks);
QObject::disconnect(&_timer50HzTasks, &QTimer::timeout, this, &MockLink::_run50HzTasks);
} }
void MockLink::_run1HzTasks(void) void MockLink::_run1HzTasks(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment