1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:23:52 +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 playerPacketController;
delete actorPacketController; delete actorPacketController;
delete worldPacketController; delete worldPacketController;
LOG_QUIT();
} }
void Networking::setServerPassword(std::string passw) noexcept void Networking::setServerPassword(std::string passw) noexcept

View file

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