From 5c6d49f48e70fd37919e948468a1c24d5aa2990e Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 12 四月 2019 21:09:24 +0800
Subject: [PATCH] 6498 【前端】【2.0】主界面技能转盘修改
---
System/Login/CrossServerLogin.cs | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/System/Login/CrossServerLogin.cs b/System/Login/CrossServerLogin.cs
index 2f71002..7822a2d 100644
--- a/System/Login/CrossServerLogin.cs
+++ b/System/Login/CrossServerLogin.cs
@@ -61,7 +61,7 @@
MaxProDef = (int)matchOK.MatchPlayer[0].MaxProDef,
};
- Clock.Create(DateTime.Now + new TimeSpan(3 * TimeSpan.TicksPerSecond), () =>
+ Clock.AlarmAt(DateTime.Now + new TimeSpan(3 * TimeSpan.TicksPerSecond), () =>
{
if (oneVsOnePlayerData.waitForLoginCrossServer)
{
@@ -139,7 +139,7 @@
gamePortBuf = gamePort;
StopLoginOverTimeProcess();
- loginOverTimeClock = Clock.Create(DateTime.Now + new TimeSpan(30 * TimeSpan.TicksPerSecond), () =>
+ loginOverTimeClock = Clock.AlarmAt(DateTime.Now + new TimeSpan(30 * TimeSpan.TicksPerSecond), () =>
{
busy = false;
ReAccountLogin();
@@ -174,7 +174,7 @@
{
this.reconnectBackGround = true;
StopLoginOverTimeProcess();
- loginOverTimeClock = Clock.Create(DateTime.Now + new TimeSpan(30 * TimeSpan.TicksPerSecond), () =>
+ loginOverTimeClock = Clock.AlarmAt(DateTime.Now + new TimeSpan(30 * TimeSpan.TicksPerSecond), () =>
{
busy = false;
ReAccountLogin();
@@ -193,8 +193,9 @@
{
if (loginOverTimeClock != null)
{
- loginOverTimeClock.Stop();
+ Clock.Stop(loginOverTimeClock);
}
+
loginOverTimeClock = null;
}
@@ -263,7 +264,7 @@
var sendInfo = new CC003_tagCGForceQuitCrossState();
GameNetSystem.Instance.SendInfo(sendInfo);
GameNetSystem.Instance.crossServerConnected_Loigc = false;
- Clock.Create(DateTime.Now + new TimeSpan(2 * TimeSpan.TicksPerSecond), () =>
+ Clock.AlarmAt(DateTime.Now + new TimeSpan(2 * TimeSpan.TicksPerSecond), () =>
{
GameNetSystem.Instance.Reconnect();
});
--
Gitblit v1.8.0