This commit is contained in:
CortexCore
2024-06-20 10:04:18 +08:00
parent d3fd104900
commit a0d95098b8
7 changed files with 251 additions and 189 deletions

View File

@@ -208,6 +208,7 @@ namespace BITKit.Net.Kcp
private void OnTick(float obj)
{
if (destroyCancellationToken.IsCancellationRequested) return;
if (client.IsConnected is false && autoReconnect)
{
if (_reconnectInterval.AllowUpdate)