解决光电分离腔监听后端口占用的问题(完善电脑版)
This commit is contained in:
parent
71935bcb04
commit
331ec69303
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -60,7 +60,7 @@ namespace ZTTMS_Manage_yibayiyi_20230320
|
|||||||
|
|
||||||
//g_ip = "41.244.68.61";
|
//g_ip = "41.244.68.61";
|
||||||
//g_ip = "127.0.0.1";
|
//g_ip = "127.0.0.1";
|
||||||
g_port = 56000;
|
g_port = 55000;
|
||||||
|
|
||||||
g_serialSyncTime = 0;
|
g_serialSyncTime = 0;
|
||||||
g_serialDataVictory = 0;
|
g_serialDataVictory = 0;
|
||||||
@ -800,7 +800,7 @@ namespace ZTTMS_Manage_yibayiyi_20230320
|
|||||||
|
|
||||||
Console.WriteLine(Others.g_ipGDFL + "连接已断开!");
|
Console.WriteLine(Others.g_ipGDFL + "连接已断开!");
|
||||||
|
|
||||||
if(Others.g_ipGDFL!=null)
|
if(Others.g_ipGDFL!=null&& Others.g_dicSocketGDFL.ContainsKey(Others.g_ipGDFL))
|
||||||
{
|
{
|
||||||
Others.g_dicSocketGDFL[Others.g_ipGDFL].Close(100);
|
Others.g_dicSocketGDFL[Others.g_ipGDFL].Close(100);
|
||||||
Others.g_dicSocketGDFL[Others.g_ipGDFL].Dispose();
|
Others.g_dicSocketGDFL[Others.g_ipGDFL].Dispose();
|
||||||
@ -1119,7 +1119,7 @@ namespace ZTTMS_Manage_yibayiyi_20230320
|
|||||||
Console.WriteLine("GDFLReceiveError:" + ex.Message);
|
Console.WriteLine("GDFLReceiveError:" + ex.Message);
|
||||||
EveryDayLog.WriteErrorGDFL("GDFLReceiveError:" + ex.Message);
|
EveryDayLog.WriteErrorGDFL("GDFLReceiveError:" + ex.Message);
|
||||||
|
|
||||||
if (Others.g_ipGDFL!=null)
|
if (Others.g_ipGDFL != null && Others.g_dicSocketGDFL.ContainsKey(Others.g_ipGDFL))
|
||||||
{
|
{
|
||||||
Others.g_dicSocketGDFL[Others.g_ipGDFL].Close(100);
|
Others.g_dicSocketGDFL[Others.g_ipGDFL].Close(100);
|
||||||
Others.g_dicSocketGDFL[Others.g_ipGDFL].Dispose();
|
Others.g_dicSocketGDFL[Others.g_ipGDFL].Dispose();
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user