提交 1f1e547a 编写于 作者: T tanghai

修复kcp的一个隐藏bug

上级 611bb67e
......@@ -11,15 +11,6 @@ namespace ETHotfix
self.Awake();
}
}
[ObjectSystem]
public class NetInnerComponentStartSystem : StartSystem<NetInnerComponent>
{
public override void Start(NetInnerComponent self)
{
self.Start();
}
}
[ObjectSystem]
public class NetInnerComponentAwake1System : AwakeSystem<NetInnerComponent, IPEndPoint>
......
......@@ -20,15 +20,6 @@ namespace ETHotfix
self.Awake(a);
}
}
[ObjectSystem]
public class NetOuterComponentStartSystem : StartSystem<NetOuterComponent>
{
public override void Start(NetOuterComponent self)
{
self.Start();
}
}
[ObjectSystem]
public class NetOuterComponentUpdateSystem : UpdateSystem<NetOuterComponent>
......
......@@ -8,15 +8,6 @@
self.Awake();
}
}
[ObjectSystem]
public class NetOuterComponentStartSystem : StartSystem<NetOuterComponent>
{
public override void Start(NetOuterComponent self)
{
self.Start();
}
}
[ObjectSystem]
public class NetOuterComponentUpdateSystem : UpdateSystem<NetOuterComponent>
......
......@@ -224,6 +224,7 @@ namespace ETModel
this.KcpSend(buffer, index, length);
return;
}
this.sendBuffer.Enqueue(new WaitSendBuffer(buffer, index, length));
}
......@@ -231,7 +232,7 @@ namespace ETModel
{
ushort size = (ushort)buffers.Select(b => b.Length).Sum();
byte[] bytes;
if (!this.isConnected)
if (this.isConnected)
{
bytes = this.cacheBytes;
}
......
......@@ -34,6 +34,8 @@ namespace ETModel
}
this.Service.AcceptCallback += this.OnAccept;
this.Start();
}
catch (Exception e)
{
......@@ -58,6 +60,8 @@ namespace ETModel
}
this.Service.AcceptCallback += this.OnAccept;
this.Start();
}
catch (Exception e)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册