1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-06 01:15:32 +00:00

[Server] Log startup errors by not deleting logger too early

This commit is contained in:
David Cernat 2017-08-29 19:30:37 +03:00
parent a883c8f8aa
commit 92553b8e29
2 changed files with 2 additions and 1 deletions

View file

@ -71,7 +71,6 @@ Networking::~Networking()
delete playerPacketController;
delete actorPacketController;
delete worldPacketController;
LOG_QUIT();
}
void Networking::setServerPassword(std::string passw) noexcept

View file

@ -332,6 +332,8 @@ int main(int argc, char *argv[])
if (code == 0)
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Quitting peacefully.");
LOG_QUIT();
if (!variables["no-logs"].as<bool>())
{
// Restore cout and cerr