com.unity.netcode.gameobjects@1.0.0-pre.9
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com). ## [1.0.0-pre.9] - 2022-05-10 ### Fixed - Fixed Hosting again after failing to host now works correctly (#1938) - Fixed NetworkManager to cleanup connected client lists after stopping (#1945) - Fixed NetworkHide followed by NetworkShow on the same frame works correctly (#1940)
This commit is contained in:
@@ -1047,7 +1047,12 @@ namespace Unity.Netcode.Transports.UTP
|
||||
return false;
|
||||
}
|
||||
|
||||
return ClientBindAndConnect();
|
||||
var succeeded = ClientBindAndConnect();
|
||||
if (!succeeded)
|
||||
{
|
||||
Shutdown();
|
||||
}
|
||||
return succeeded;
|
||||
}
|
||||
|
||||
public override bool StartServer()
|
||||
@@ -1057,12 +1062,23 @@ namespace Unity.Netcode.Transports.UTP
|
||||
return false;
|
||||
}
|
||||
|
||||
bool succeeded;
|
||||
switch (m_ProtocolType)
|
||||
{
|
||||
case ProtocolType.UnityTransport:
|
||||
return ServerBindAndListen(ConnectionData.ListenEndPoint);
|
||||
succeeded = ServerBindAndListen(ConnectionData.ListenEndPoint);
|
||||
if (!succeeded)
|
||||
{
|
||||
Shutdown();
|
||||
}
|
||||
return succeeded;
|
||||
case ProtocolType.RelayUnityTransport:
|
||||
return StartRelayServer();
|
||||
succeeded = StartRelayServer();
|
||||
if (!succeeded)
|
||||
{
|
||||
Shutdown();
|
||||
}
|
||||
return succeeded;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user