This commit is contained in:
CortexCore
2024-06-16 17:55:29 +08:00
parent 22f318c8f6
commit 9186ab6e37
5 changed files with 13 additions and 8 deletions

View File

@@ -123,6 +123,11 @@ namespace BITKit.Net
client.Tick();
await Task.Delay(100);
}
if (client.connected is false)
{
OnConnectedFailed?.Invoke();
}
return client.connected;
}
catch (Exception e)
@@ -367,7 +372,8 @@ namespace BITKit.Net
}
return value.As<T>();
}
await Task.Delay(100);
await UniTask.Yield();
}
}