Skip to content

Commit

Permalink
Merge pull request #53 from joreg/bugfix/unadvertise-service
Browse files Browse the repository at this point in the history
Service now unadvertises itself on dispose
  • Loading branch information
momo-the-monster authored Feb 26, 2024
2 parents 139a021 + 15bb476 commit 88991a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vrc-oscquery-lib/Zeroconf/MeaModDiscovery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ public class MeaModDiscovery : IDiscovery

public void Dispose()
{
_discovery?.Dispose();
if (_discovery != null)
{
foreach (var profile in _profiles.Keys.ToArray())
Unadvertise(profile);

_discovery.Dispose();
}
_mdns?.Stop();
}

Expand Down

0 comments on commit 88991a3

Please sign in to comment.