diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 3b3380702..2b8da2b92 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -71,7 +71,6 @@ Networking::~Networking() delete playerPacketController; delete actorPacketController; delete worldPacketController; - LOG_QUIT(); } void Networking::setServerPassword(std::string passw) noexcept diff --git a/apps/openmw-mp/main.cpp b/apps/openmw-mp/main.cpp index 273d833dc..342c77eda 100644 --- a/apps/openmw-mp/main.cpp +++ b/apps/openmw-mp/main.cpp @@ -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()) { // Restore cout and cerr