From 9da4305a9c65a5813e7745e8c7d2bfa8c1f6f72d Mon Sep 17 00:00:00 2001 From: Tobias Kohlbau Date: Tue, 2 Jan 2018 13:04:53 +0100 Subject: [PATCH] Fix #5224: Close multiplayer window when server closes Signed-off-by: Tobias Kohlbau --- src/openrct2/network/Network.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/network/Network.cpp b/src/openrct2/network/Network.cpp index 4eed927c3a..f815df80ed 100644 --- a/src/openrct2/network/Network.cpp +++ b/src/openrct2/network/Network.cpp @@ -548,6 +548,7 @@ void Network::UpdateClient() intent.putExtra(INTENT_EXTRA_MESSAGE, std::string { str_disconnected }); context_open_intent(&intent); } + window_close_by_class(WC_MULTIPLAYER); Close(); } break;