From 25af51b4acc41447bbbcb5d211970601fd1c64fb Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 5 Oct 2010 19:00:36 +1300 Subject: [PATCH] Prevent a race condition --- OpenRA.Game/Server/MasterServerQuery.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Server/MasterServerQuery.cs b/OpenRA.Game/Server/MasterServerQuery.cs index b9d2383c08..67e01f89ed 100755 --- a/OpenRA.Game/Server/MasterServerQuery.cs +++ b/OpenRA.Game/Server/MasterServerQuery.cs @@ -53,9 +53,11 @@ namespace OpenRA.Server public static void GetMOTD(string masterServerUrl) { + var motd = Widget.RootWidget.GetWidget("MOTD_SCROLLER"); + + // Runs in a separate thread to prevent dns lookup hitches new Thread(() => { - var motd = Widget.RootWidget.GetWidget("MOTD_SCROLLER"); if (motd != null) { try