修复NetClient的等待主线程的错误

This commit is contained in:
CortexCore
2024-07-14 09:21:14 +08:00
parent 2496964953
commit de0bae347d
2 changed files with 10 additions and 20 deletions

View File

@@ -46,7 +46,7 @@ namespace BITKit.Net
private DateTime _now=DateTime.Now;
private TimeSpan _interval=TimeSpan.FromSeconds(0.32);
private byte[] _heartBeat = new byte[] { (byte)NetCommandType.Heartbeat };
private readonly byte[] _heartBeat = new byte[] { (byte)NetCommandType.Heartbeat };
public KCPNetServer()
{