feat: Adds ping listener on port 12000 for server list (#1485)

This commit is contained in:
Kamron Batman 2023-09-03 09:29:27 -07:00 committed by GitHub
parent 15227a53ec
commit 60a6796903
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 186 additions and 6 deletions

View file

@ -515,6 +515,7 @@ public static class Core
AssemblyHandler.Invoke("Initialize");
TcpServer.Start();
PingServer.Start();
EventSink.InvokeServerStarted();
_firstTick = TickCount;
RunEventLoop();
@ -548,6 +549,7 @@ public static class Core
// Handle networking
TcpServer.Slice();
NetState.Slice();
PingServer.Slice();
// Execute captured post-await methods (like Timer.Pause)
LoopContext.ExecuteTasks();