mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 16:16:33 +00:00
添加了-debug启动项,此启动项将禁用服务器的心跳检测功能
This commit is contained in:
parent
713a4142a2
commit
9818fecc37
@ -130,8 +130,11 @@ namespace Milimoe.FunGame.Core.Library.Common.Network
|
|||||||
|
|
||||||
private void StartSendingHeartBeat()
|
private void StartSendingHeartBeat()
|
||||||
{
|
{
|
||||||
_SendingHeartBeat = true;
|
if (!FunGameInfo.FunGame_DebugMode)
|
||||||
SendingHeartBeatTask = Task.Factory.StartNew(SendHeartBeat);
|
{
|
||||||
|
_SendingHeartBeat = true;
|
||||||
|
SendingHeartBeatTask = Task.Factory.StartNew(SendHeartBeat);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void StopReceiving()
|
private void StopReceiving()
|
||||||
|
|||||||
@ -13,6 +13,12 @@
|
|||||||
|
|
||||||
public const string FunGame_CopyRight = @"©2023 Milimoe. 米粒的糖果屋";
|
public const string FunGame_CopyRight = @"©2023 Milimoe. 米粒的糖果屋";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 添加-debug启动项将开启DebugMode(仅适用于Desktop或Console)
|
||||||
|
/// <para>目前支持禁用心跳检测功能</para>
|
||||||
|
/// </summary>
|
||||||
|
public static bool FunGame_DebugMode { get; set; } = false;
|
||||||
|
|
||||||
private const string FunGame_Core = "FunGame Core";
|
private const string FunGame_Core = "FunGame Core";
|
||||||
private const string FunGame_Core_Api = "FunGame Core Api";
|
private const string FunGame_Core_Api = "FunGame Core Api";
|
||||||
private const string FunGame_Console = "FunGame Console";
|
private const string FunGame_Console = "FunGame Console";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user