mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
合理化Address协议逻辑
合理化Address协议逻辑
This commit is contained in:
@@ -26,6 +26,7 @@ namespace TEngine.Logic
|
||||
{
|
||||
_session = (Session)Parent;
|
||||
_selfRunTimeId = RuntimeId;
|
||||
RepeatedSend().Coroutine();
|
||||
_timerId = TimerScheduler.Instance.Unity.RepeatedTimer(interval, () => RepeatedSend().Coroutine());
|
||||
}
|
||||
|
||||
@@ -57,6 +58,7 @@ namespace TEngine.Logic
|
||||
var responseTime = TimeHelper.Now;
|
||||
Ping = (int)(responseTime - requestTime) / 2;
|
||||
TimeHelper.TimeDiff = pingResponse.Now + Ping - responseTime;
|
||||
Log.Info("----------- HeartBeat -----------");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user