taskrun
This commit is contained in:
parent
0549cdbd52
commit
eeffccd4e6
@ -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:5085/";
|
||||
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;
|
||||
|
||||
@ -98,11 +98,15 @@ namespace Assets.Scenes.Ride.Scripts.Network
|
||||
public void DisconnectAndStop()
|
||||
{
|
||||
_stop = true;
|
||||
DisconnectAsync();
|
||||
while (IsConnected)
|
||||
Task.Run(() =>
|
||||
{
|
||||
Thread.Yield();
|
||||
}
|
||||
DisconnectAsync();
|
||||
});
|
||||
|
||||
//while (IsConnected)
|
||||
//{
|
||||
// Thread.Yield();
|
||||
//}
|
||||
}
|
||||
|
||||
protected override void OnConnected()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user