Skip to content

Commit

Permalink
Fix DiscoveryImplPlatform::Shutdown so restart works correctly. (#18542)
Browse files Browse the repository at this point in the history
Until the changes in #18442 DiscoveryImplPlatform::Shutdown was a
no-op on most platforms, so the fact that you could not re-init after
that call did not matter, because nothing had actually been shut down.
Now that we are actually shutting down mResolverProxy, we need to make
sure a future call to Init() will correctly re-initialize things
instead of just bailing out.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Aug 21, 2023
1 parent 33fbc39 commit 4473945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/dnssd/Discovery_ImplPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ void DiscoveryImplPlatform::Shutdown()
VerifyOrReturn(mDnssdInitialized);
mResolverProxy.Shutdown();
ChipDnssdShutdown();
mDnssdInitialized = false;
}

void DiscoveryImplPlatform::HandleDnssdInit(void * context, CHIP_ERROR initError)
Expand Down

0 comments on commit 4473945

Please sign in to comment.