This commit is contained in:
CortexCore
2024-06-12 17:57:35 +08:00
parent b3996f7bf3
commit ceea55b67a
2 changed files with 19 additions and 5 deletions

View File

@@ -61,8 +61,15 @@ namespace BITKit.Net
private void Tick(object sender, ElapsedEventArgs e)
{
if (server.IsActive() is false || ManualTick) return;
try
{
if (server.IsActive() is false || ManualTick) return;
server.Tick();
}
catch (Exception exception)
{
BIT4Log.LogException(exception);
}
}
public void StartServer(ushort port = 27014)