From eb51679c618d5027070fbd6f3c0519f0f17e7d7d Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期一, 23 十一月 2020 10:07:53 +0800
Subject: [PATCH] Merge branch 'CJL' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into CJL
---
HDL-ON_Android/Application.cs | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs
index 6d17a30..f84ae5d 100644
--- a/HDL-ON_Android/Application.cs
+++ b/HDL-ON_Android/Application.cs
@@ -63,14 +63,13 @@
BaseActivity.NetworkStateChanged += (int obj) =>
{
-
if (!IsEnterBackground)
{
- BusSocket.Stop();
+ //BusSocket.Stop();
new System.Threading.Thread(() =>
{
System.Threading.Thread.Sleep(1000);
- BusSocket.Start(6000);
+ //BusSocket.Start();
})
{ IsBackground = true }.Start();
}
@@ -94,7 +93,7 @@
BaseActivity.OnDestroyAction += (activity) =>
{
Console.WriteLine("OnDestroyAction");
- BusSocket.Stop();
+ //BusSocket.Stop();
OnAppConfig.Instance.unlockTime = DateTime.Now;
};
@@ -241,7 +240,7 @@
void BusSocketStop()
{
IsEnterBackground = true;
- BusSocket.Stop();
+ //BusSocket.Stop();
OnAppConfig.Instance.unlockTime = DateTime.Now;
}
@@ -253,7 +252,7 @@
{
IsEnterBackground = false;
- BusSocket.Start(6000);
+ //BusSocket.Start();
}
}
}
\ No newline at end of file
--
Gitblit v1.8.0