private void OnDBClose(Socket s) { lock (_lock) { mbConnect = false; mDBPacket.ClearPacket(); Log.Instance().WriteLog("dbserver close!!!reconnect "); mTcpDBClient.SetSocket(null); mnReconnectTick = System.Environment.TickCount; //重连时间 } }
private static void OnDBClose(Socket s) { mDBPacket.ClearPacket(); Log.Instance().WriteLog("dbserver close!!!reconnect "); mTcpClient.ReConnect(); //重新连接 }