NewLife/XCoder

单连接时,使用本连接发送数据
大石头 authored at 2022-09-09 09:56:44
87bafa1
Tree
1 Parent(s) 1ec52b7
Summary: 1 changed files with 5 additions and 5 deletions.
Modified +5 -5
Modified +5 -5
diff --git a/XCoder/XNet/FrmMain.cs b/XCoder/XNet/FrmMain.cs
index ee61214..2a37327 100644
--- a/XCoder/XNet/FrmMain.cs
+++ b/XCoder/XNet/FrmMain.cs
@@ -381,11 +381,11 @@ namespace XNet
 
             if (_Client != null)
             {
-                //if (ths <= 1)
-                //{
-                //    _Client.SendMulti(pk, count, sleep);
-                //}
-                //else
+                if (ths <= 1)
+                {
+                    _Client.SendConcurrency(pk, count, sleep);
+                }
+                else
                 {
                     var any = _Client.Local.Address.IsAny();
                     var list = new List<ISocketClient>();