Sfoglia il codice sorgente

修复TCP一个bug

tanghai 3 anni fa
parent
commit
2e2a037c15
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Unity/Assets/Scripts/Core/Module/Network/TService.cs

+ 2 - 2
Unity/Assets/Scripts/Core/Module/Network/TService.cs

@@ -198,7 +198,7 @@ namespace ET
 						case TcpOp.StartSend:
 						{
 							TChannel tChannel = this.Get(result.ChannelId);
-							if (tChannel == null)
+							if (tChannel != null)
 							{
 								tChannel.StartSend();
 							}
@@ -207,7 +207,7 @@ namespace ET
 						case TcpOp.StartRecv:
 						{
 							TChannel tChannel = this.Get(result.ChannelId);
-							if (tChannel == null)
+							if (tChannel != null)
 							{
 								tChannel.StartRecv();
 							}