设备监控-回写
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -10,6 +10,11 @@
|
||||
void signalHandler(int signal)
|
||||
{
|
||||
LOG_INFO() << "Received signal:" << signal;
|
||||
CoreService* coreService = CoreService::instance();
|
||||
if (coreService) {
|
||||
coreService->shutdown();
|
||||
}
|
||||
|
||||
QCoreApplication::quit();
|
||||
}
|
||||
|
||||
@@ -68,7 +73,7 @@ int main(int argc, char *argv[])
|
||||
LOG_ERROR() << "CoreService initialize failed";
|
||||
return 1;
|
||||
}
|
||||
QObject::connect(&app, &QCoreApplication::aboutToQuit, coreService, &CoreService::shutdown);
|
||||
// QObject::connect(&app, &QCoreApplication::aboutToQuit, coreService, &CoreService::shutdown);
|
||||
|
||||
// ========================================================================
|
||||
// 创建并注册 D-Bus 服务(仅在 CoreRouter 角色中启用)
|
||||
|
||||
Reference in New Issue
Block a user