Skip to content

Commit

Permalink
Cast: Fix NsdManager leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Sep 21, 2023
1 parent 833e294 commit 5f8c418
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public CastMediaRouteProvider(Context context) {
return;
}

mNsdManager = (NsdManager)context.getSystemService(Context.NSD_SERVICE);
mNsdManager = (NsdManager)context.getApplicationContext().getSystemService(Context.NSD_SERVICE);

mDiscoveryListener = new NsdManager.DiscoveryListener() {

Expand Down

0 comments on commit 5f8c418

Please sign in to comment.