mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 15:55:39 +02:00
Fixed issue with "blinking" SRS status when no clients connected to server.
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Perun_v1
|
|||||||
public string[] SendBuffer=new string[10]; // Mysql send buffer
|
public string[] SendBuffer=new string[10]; // Mysql send buffer
|
||||||
public bool LetMeOut=false; // Helper to handle system tray
|
public bool LetMeOut=false; // Helper to handle system tray
|
||||||
public string MySql_connStr; // MySQL connection string
|
public string MySql_connStr; // MySQL connection string
|
||||||
string publishVersion = "DEBUG"; // Helper for pulling version definition
|
public string publishVersion = "DEBUG"; // Helper for pulling version definition
|
||||||
|
|
||||||
public static void LogHistoryAdd(ref string[] LogHistory, string Comment)
|
public static void LogHistoryAdd(ref string[] LogHistory, string Comment)
|
||||||
{
|
{
|
||||||
@@ -415,8 +415,15 @@ namespace Perun_v1
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
strSRSJson = JsonConvert.SerializeObject(raw_lotatc);
|
if (raw_lotatc.Count > 0)
|
||||||
strSRSJson = "{'type':'100','payload':'" + strSRSJson + "'}";
|
{
|
||||||
|
strSRSJson = JsonConvert.SerializeObject(raw_lotatc);
|
||||||
|
strSRSJson = "{'type':'100','payload':'" + strSRSJson + "'}";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strSRSJson = "{'type':'100','payload':{'ignore':'false'}}";
|
||||||
|
}
|
||||||
SRSdefault = false;
|
SRSdefault = false;
|
||||||
LogHistoryAdd(ref LogHistory, "SRS data loaded");
|
LogHistoryAdd(ref LogHistory, "SRS data loaded");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user