mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 17:05:39 +02:00
Not send srs/lotatc data if there is no game connection.
This commit is contained in:
@@ -486,6 +486,8 @@ namespace Perun_v1
|
|||||||
bool boolLotATCdefault = true;
|
bool boolLotATCdefault = true;
|
||||||
|
|
||||||
// Handle SRS
|
// Handle SRS
|
||||||
|
if (Globals.bClientConnected)
|
||||||
|
{
|
||||||
if (con_check_3rd_srs.Checked)
|
if (con_check_3rd_srs.Checked)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -551,8 +553,11 @@ namespace Perun_v1
|
|||||||
strSRSJson = "{'type':'100','instance':'" + Int32.Parse(con_txt_dcs_instance.Text) + "','payload':{'ignore':'true'}}";
|
strSRSJson = "{'type':'100','instance':'" + Int32.Parse(con_txt_dcs_instance.Text) + "','payload':{'ignore':'true'}}";
|
||||||
}
|
}
|
||||||
dcConnection.SendToMySql(strSRSJson);
|
dcConnection.SendToMySql(strSRSJson);
|
||||||
|
}
|
||||||
|
|
||||||
// Handle LotATC
|
// Handle LotATC
|
||||||
|
if (Globals.bClientConnected)
|
||||||
|
{
|
||||||
if (con_check_3rd_lotatc.Checked)
|
if (con_check_3rd_lotatc.Checked)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -579,6 +584,7 @@ namespace Perun_v1
|
|||||||
strLotATCJson = "{'type':'101','instance':'" + Int32.Parse(con_txt_dcs_instance.Text) + "','payload':{'ignore':'true'}}"; // No LotATC controller connected
|
strLotATCJson = "{'type':'101','instance':'" + Int32.Parse(con_txt_dcs_instance.Text) + "','payload':{'ignore':'true'}}"; // No LotATC controller connected
|
||||||
}
|
}
|
||||||
dcConnection.SendToMySql(strLotATCJson);
|
dcConnection.SendToMySql(strLotATCJson);
|
||||||
|
}
|
||||||
|
|
||||||
// Let's do not risk int overload
|
// Let's do not risk int overload
|
||||||
Globals.intMysqlErros = (Globals.intMysqlErros > 999) ? 999 : Globals.intMysqlErros;
|
Globals.intMysqlErros = (Globals.intMysqlErros > 999) ? 999 : Globals.intMysqlErros;
|
||||||
|
|||||||
Reference in New Issue
Block a user