Browse Source

修复KCP bug

tanghai 7 years ago
parent
commit
329ec7957c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Unity/Assets/Scripts/Module/Message/Network/KCP/KChannel.cs

+ 1 - 0
Unity/Assets/Scripts/Module/Message/Network/KCP/KChannel.cs

@@ -52,6 +52,7 @@ namespace ETModel
 			this.RemoteConn = remoteConn;
 			this.RemoteConn = remoteConn;
 			this.remoteEndPoint = remoteEndPoint;
 			this.remoteEndPoint = remoteEndPoint;
 			this.socket = socket;
 			this.socket = socket;
+			this.parser = new PacketParser(this.recvBuffer);
 			kcp = new Kcp(this.RemoteConn, this.Output);
 			kcp = new Kcp(this.RemoteConn, this.Output);
 			kcp.SetMtu(512);
 			kcp.SetMtu(512);
 			kcp.NoDelay(1, 10, 2, 1);  //fast
 			kcp.NoDelay(1, 10, 2, 1);  //fast