测试包;退出骑行场景释放tcp资源
This commit is contained in:
1 parent
8c5ad08475
commit
732e5ac6c6
6 files changed
+15
-8
No files matched your search
@@ -109,8 +109,8 @@ public static class App
|
||||
//Host = "http://192.168.0.101:5087/";
|
||||
//UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
|
||||
//TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
|
||||
Host = "https://wx.powerfun.com.cn/";
|
||||
//Host = "http://192.168.0.101:5084/";
|
||||
//Host = "https://wx.powerfun.com.cn/";
|
||||
Host = "http://192.168.0.101:5085/";
|
||||
UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11000);
|
||||
TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11001);
|
||||
Debug.unityLogger.logEnabled = false;
|
||||
|
||||
@@ -167,6 +167,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
/// </summary>
|
||||
public static void SendGizpModel()
|
||||
{
|
||||
LastActiveTime = DateTime.Now;
|
||||
var client = App.AppVersion;
|
||||
#if UNITY_ANDROID
|
||||
client = "Unity-Android" + App.AppVersion;
|
||||
@@ -267,6 +268,10 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (_udpService != null)
|
||||
{
|
||||
_udpService.Close();
|
||||
}
|
||||
//停止计时
|
||||
if (heartbeat != null)
|
||||
{
|
||||
|
||||
@@ -89,6 +89,7 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
MapUDPService.Dispose();
|
||||
Resources.UnloadUnusedAssets();
|
||||
GC.Collect();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user