X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain.cpp;h=c2c499fbbc205503ed42da278f585dfbc60c1ad1;hb=14fff12d9df0ee30e2df4bf9d22c2e83065816df;hp=8b33355f6163f54ceb4f923646a9b634ea1aa041;hpb=175f098e7e712b839db433b93fe8649a402c6784;p=fms.git diff --git a/src/main.cpp b/src/main.cpp index 8b33355..c2c499f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,6 +5,8 @@ #include #include #include +#include +#include #ifdef _WIN32 #include "../include/fmsservice.h" @@ -132,5 +134,7 @@ void MainFunction() PThread::Sleep(1000); }while(!wantshutdown); + LogFile::Instance()->WriteLog(LogFile::LOGLEVEL_DEBUG,"FMS wants to shutdown"); + Shutdown(); }