Skip to content

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 3, 2023
1 parent 9b78e75 commit 7d5e01a
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 7d5e01a

Please sign in to comment.