diff --git a/Xamarin.Essentials/Connectivity/Connectivity.android.cs b/Xamarin.Essentials/Connectivity/Connectivity.android.cs index 21123f6c2..58deaef2a 100644 --- a/Xamarin.Essentials/Connectivity/Connectivity.android.cs +++ b/Xamarin.Essentials/Connectivity/Connectivity.android.cs @@ -59,7 +59,7 @@ static void StopListeners() { Debug.WriteLine("Connectivity receiver already unregistered. Disposing of it."); } - conectivityReceiver.Dispose(); + conectivityReceiver = null; } @@ -88,7 +88,6 @@ static void UnregisterNetworkCallback() manager.UnregisterNetworkCallback(networkCallback); - networkCallback?.Dispose(); networkCallback = null; }