main: close logs as last thing before exit

This should prevent losing messages from other finalisation code.
This commit is contained in:
Miroslav Lichvar 2017-05-26 12:50:47 +02:00
parent c049bce007
commit b712c100d7

3
main.c
View file

@ -127,9 +127,8 @@ MAI_CleanupAndExit(void)
delete_pidfile();
CNF_Finalise();
LOG_Finalise();
HSH_Finalise();
LOG_Finalise();
exit(exit_status);
}