mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Decouple flightloop processing from DBus
There are needs to not only run DBus tasks, but also different generic tasks during the processing loop.
This commit is contained in:
committed by
Klaus Basan
parent
41ac858df8
commit
cfc9c3166e
@@ -156,9 +156,9 @@ namespace XSwiftBus
|
||||
{
|
||||
auto *plugin = static_cast<CPlugin *>(refcon);
|
||||
plugin->m_dbusDispatcher.runOnce();
|
||||
if (plugin->m_service) { plugin->m_service->processDBus(); }
|
||||
if (plugin->m_weather) { plugin->m_weather->processDBus(); }
|
||||
if (plugin->m_traffic) { plugin->m_traffic->processDBus(); }
|
||||
if (plugin->m_service) { plugin->m_service->process(); }
|
||||
if (plugin->m_weather) { plugin->m_weather->process(); }
|
||||
if (plugin->m_traffic) { plugin->m_traffic->process(); }
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user