From effb05e73271dc6544a846d92b23c2e5dea62286 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Mon, 23 Mar 2020 09:30:47 -0500 Subject: [PATCH] fix smells --- Assets/Mirror/Components/Discovery/NetworkDiscoveryBase.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } } }