Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2091 from xamarin/fix-1996
Browse files Browse the repository at this point in the history
Remove wrong Connectivity dispose calls on Android
  • Loading branch information
jfversluis committed Jul 2, 2023
2 parents f264e71 + b375b99 commit 8ee188f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Xamarin.Essentials/Connectivity/Connectivity.android.cs
Expand Up @@ -59,7 +59,7 @@ static void StopListeners()
{
Debug.WriteLine("Connectivity receiver already unregistered. Disposing of it.");
}
conectivityReceiver.Dispose();

conectivityReceiver = null;
}

Expand Down Expand Up @@ -88,7 +88,6 @@ static void UnregisterNetworkCallback()

manager.UnregisterNetworkCallback(networkCallback);

networkCallback?.Dispose();
networkCallback = null;
}

Expand Down

0 comments on commit 8ee188f

Please sign in to comment.