mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-10-29 23:36:37 +00:00
fix: always unsubscribe on sources
This commit is contained in:
1 parent
1a0a1fb884
commit
da53052a6f
1 file changed
+3
-4
@@ -99,10 +99,9 @@ void AWDataEngineAggregator::dropSource(const QString &_source)
|
|||||||
{
|
{
|
||||||
qCDebug(LOG_AW) << "Disconnect sensor" << _source;
|
qCDebug(LOG_AW) << "Disconnect sensor" << _source;
|
||||||
|
|
||||||
if (m_subscribed.contains(_source)) {
|
m_interface->unsubscribe({_source}).waitForFinished();
|
||||||
m_interface->unsubscribe({_source}).waitForFinished();
|
m_interface->unsubscribe({_source}).waitForFinished();
|
||||||
m_subscribed.remove(_source);
|
m_subscribed.remove(_source);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user