mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28: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();
|
||||
}
|
||||
|
||||
Logger.Info("Starting room cleanup thread...", LogArea.Startup);
|
||||
RoomHelper.StartCleanupThread();
|
||||
|
||||
Logger.Info("Initializing Redis...", LogArea.Startup);
|
||||
RedisDatabase.Initialize().Wait();
|
||||
|
||||
if (serverType == ServerType.GameServer)
|
||||
{
|
||||
Logger.Info("Starting room cleanup thread...", LogArea.Startup);
|
||||
RoomHelper.StartCleanupThread();
|
||||
}
|
||||
|
||||
stopwatch.Stop();
|
||||
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