Skip to content

Commit e5d6c0e

Browse files
committed
fixed:app exist crashed.
1 parent ad6006f commit e5d6c0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

XEngine_Source/XEngine_ServiceApp/XEngine_HttpApp/XEngine_HttpApp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ void ServiceApp_Stop(int signo)
3939
ModuleDatabase_Phone_Destory();
4040
ModuleDatabase_Bank_Destory();
4141
//销毁其他
42+
ModulePlugin_Core_Destroy();
4243
ModuleHelp_P2PClient_Destory();
4344
//销毁日志资源
4445
HelpComponents_XLog_Destroy(xhLog);
45-
ModulePlugin_Core_Destroy();
4646
}
4747
#ifdef _WINDOWS
4848
WSACleanup();
@@ -270,7 +270,7 @@ int main(int argc, char** argv)
270270
}
271271

272272
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _T("所有服务成功启动,服务运行中,发行版本次数:%d,当前版本:%s。。。"), st_ServiceConfig.st_XVer.pStl_ListVer->size(), st_ServiceConfig.st_XVer.pStl_ListVer->front().c_str());
273-
while (bIsRun)
273+
while (TRUE)
274274
{
275275
std::this_thread::sleep_for(std::chrono::seconds(1));
276276
}
@@ -291,10 +291,10 @@ int main(int argc, char** argv)
291291
ModuleDatabase_Phone_Destory();
292292
ModuleDatabase_Bank_Destory();
293293
//销毁其他
294+
ModulePlugin_Core_Destroy();
294295
ModuleHelp_P2PClient_Destory();
295296
//销毁日志资源
296297
HelpComponents_XLog_Destroy(xhLog);
297-
ModulePlugin_Core_Destroy();
298298
}
299299
#ifdef _WINDOWS
300300
WSACleanup();

0 commit comments

Comments
 (0)