Prevent a race condition

This commit is contained in:
Paul Chote
2010-10-05 19:00:36 +13:00
parent ecd7064cc3
commit 25af51b4ac

View File

@@ -53,9 +53,11 @@ namespace OpenRA.Server
public static void GetMOTD(string masterServerUrl)
{
var motd = Widget.RootWidget.GetWidget<ScrollingTextWidget>("MOTD_SCROLLER");
// Runs in a separate thread to prevent dns lookup hitches
new Thread(() =>
{
var motd = Widget.RootWidget.GetWidget<ScrollingTextWidget>("MOTD_SCROLLER");
if (motd != null)
{
try