diff --git a/Assets/Mirror/Components/Discovery/NetworkDiscoveryBase.cs b/Assets/Mirror/Components/Discovery/NetworkDiscoveryBase.cs index fdf89b7fd..20d4ed447 100644 --- a/Assets/Mirror/Components/Discovery/NetworkDiscoveryBase.cs +++ b/Assets/Mirror/Components/Discovery/NetworkDiscoveryBase.cs @@ -36,8 +36,8 @@ public abstract class NetworkDiscoveryBase : MonoBehaviour [Range(1, 60)] float ActiveDiscoveryInterval = 3; - protected UdpClient serverUdpClient = null; - protected UdpClient clientUdpClient = null; + protected UdpClient serverUdpClient; + protected UdpClient clientUdpClient; #if UNITY_EDITOR void OnValidate() @@ -146,7 +146,6 @@ public async Task ServerListenAsync() } catch (Exception) { - continue; } } }