Skip to content

Commit f185b83

Browse files
committed
Needs to call Shutdown
1 parent 809a508 commit f185b83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/dnssd/Discovery_ImplPlatform.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ void DiscoveryImplPlatform::HandleDnssdError(void * context, CHIP_ERROR error)
423423

424424
if (error == CHIP_ERROR_FORCED_RESET)
425425
{
426-
// Restore dnssd state before restart
427-
publisher->mState = State::kUninitialized;
426+
// Restore dnssd state before restart, also needs to call ChipDnssdShutdown()
427+
publisher->Shutdown();
428428

429429
DeviceLayer::ChipDeviceEvent event;
430430
event.Type = DeviceLayer::DeviceEventType::kDnssdRestartNeeded;

0 commit comments

Comments
 (0)