瀏覽代碼

FIX: Compile time error. I forget what means of this function, commit it.

Xing Cheng 3 年之前
父節點
當前提交
b9f7ac064b
共有 1 個文件被更改,包括 12 次插入12 次删除
  1. 12 12
      ConnectionClient.cs

+ 12 - 12
ConnectionClient.cs

@@ -40,20 +40,20 @@ namespace Island.StandardLib
                     throw new PlayerSocketFatalException("client", PlayerSocketFatalExceptionType.InternalDuplicatePlayerThreadStart);
                     throw new PlayerSocketFatalException("client", PlayerSocketFatalExceptionType.InternalDuplicatePlayerThreadStart);
             clientLoop = new Thread(ClientLoop) { IsBackground = true };
             clientLoop = new Thread(ClientLoop) { IsBackground = true };
             clientLoop.Start();
             clientLoop.Start();
-            KeepConnect<int, object>()(default);
+            //KeepConnect<int, object>()(default);
         }
         }
 
 
-        public Func<TIn, TOut> KeepConnect<TIn, TOut>() where TIn : struct where TOut : class
-        {
-            return t =>
-            {
-                KeepConnect();
-                Func<TOut> func = () =>
-                {
-                    return default(TOut);
-                };
-            };
-        }
+        //public Func<TIn, TOut> KeepConnect<TIn, TOut>() where TIn : struct where TOut : class
+        //{
+        //    return t =>
+        //    {
+        //        KeepConnect();
+        //        Func<TOut> func = () =>
+        //        {
+        //            return default(TOut);
+        //        };
+        //    };
+        //}
         
         
         public LoginResult ConnectAsLogin<RequestType>(RequestType request)
         public LoginResult ConnectAsLogin<RequestType>(RequestType request)
             where RequestType : ILoginOrRegisterRequest, IStorable, new()
             where RequestType : ILoginOrRegisterRequest, IStorable, new()