Move ServerStarted notifications into the server thread.
This commit is contained in:
@@ -156,14 +156,14 @@ namespace OpenRA.Server
|
|||||||
|
|
||||||
FieldLoader.Load(LobbyInfo.GlobalSettings, modData.Manifest.LobbyDefaults);
|
FieldLoader.Load(LobbyInfo.GlobalSettings, modData.Manifest.LobbyDefaults);
|
||||||
|
|
||||||
foreach (var t in serverTraits.WithInterface<INotifyServerStart>())
|
|
||||||
t.ServerStarted(this);
|
|
||||||
|
|
||||||
Log.Write("server", "Initial mod: {0}", ModData.Manifest.Mod.Id);
|
|
||||||
Log.Write("server", "Initial map: {0}", LobbyInfo.GlobalSettings.Map);
|
|
||||||
|
|
||||||
new Thread(_ =>
|
new Thread(_ =>
|
||||||
{
|
{
|
||||||
|
foreach (var t in serverTraits.WithInterface<INotifyServerStart>())
|
||||||
|
t.ServerStarted(this);
|
||||||
|
|
||||||
|
Log.Write("server", "Initial mod: {0}", ModData.Manifest.Mod.Id);
|
||||||
|
Log.Write("server", "Initial map: {0}", LobbyInfo.GlobalSettings.Map);
|
||||||
|
|
||||||
var timeout = serverTraits.WithInterface<ITick>().Min(t => t.TickTimeout);
|
var timeout = serverTraits.WithInterface<ITick>().Min(t => t.TickTimeout);
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user