From 92e277d75dd49c7a07b591c8e8a4b108f941ed88 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Wed, 3 May 2017 02:17:19 +0300 Subject: [PATCH] [Client] Prevent application hang on Windows when plugins don't match --- apps/openmw/mwmp/Networking.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwmp/Networking.cpp b/apps/openmw/mwmp/Networking.cpp index 07540fdf8..9f7ff6c6f 100644 --- a/apps/openmw/mwmp/Networking.cpp +++ b/apps/openmw/mwmp/Networking.cpp @@ -396,6 +396,9 @@ void Networking::preInit(std::vector &content, Files::Collections & { LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, comparePluginsMonospaced(checksums, checksumsResponse, true).c_str()); SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "tes3mp", errmsg.c_str(), 0); +#if defined(_MSC_VER) + throw std::runtime_error("Shutting down."); +#endif MWBase::Environment::get().getStateManager()->requestQuit(); } }