mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 01:38:39 +00:00
Only cleanup rooms on gameserver
This commit is contained in:
parent
e8a10245c8
commit
09994769da
1 changed files with 7 additions and 4 deletions
|
@ -84,12 +84,15 @@ public static class StartupTasks
|
||||||
FileHelper.ConvertAllTexturesToPng();
|
FileHelper.ConvertAllTexturesToPng();
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.Info("Starting room cleanup thread...", LogArea.Startup);
|
|
||||||
RoomHelper.StartCleanupThread();
|
|
||||||
|
|
||||||
Logger.Info("Initializing Redis...", LogArea.Startup);
|
Logger.Info("Initializing Redis...", LogArea.Startup);
|
||||||
RedisDatabase.Initialize().Wait();
|
RedisDatabase.Initialize().Wait();
|
||||||
|
|
||||||
|
if (serverType == ServerType.GameServer)
|
||||||
|
{
|
||||||
|
Logger.Info("Starting room cleanup thread...", LogArea.Startup);
|
||||||
|
RoomHelper.StartCleanupThread();
|
||||||
|
}
|
||||||
|
|
||||||
stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
Logger.Success($"Ready! Startup took {stopwatch.ElapsedMilliseconds}ms. Passing off control to ASP.NET...", LogArea.Startup);
|
Logger.Success($"Ready! Startup took {stopwatch.ElapsedMilliseconds}ms. Passing off control to ASP.NET...", LogArea.Startup);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue