Explorar el Código

修复KCP bug

tanghai hace 7 años
padre
commit
329ec7957c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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.remoteEndPoint = remoteEndPoint;
 			this.socket = socket;
+			this.parser = new PacketParser(this.recvBuffer);
 			kcp = new Kcp(this.RemoteConn, this.Output);
 			kcp.SetMtu(512);
 			kcp.NoDelay(1, 10, 2, 1);  //fast