Skip to content

Commit

Permalink
Fix TestDnssd exit after last HandleResolved call
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Apr 21, 2023
1 parent e663f94 commit cbf5e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/tests/TestDnssd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ static void HandleResolve(void * context, DnssdService * result, const chip::Spa

if (gBrowsedServicesCount == ++gResolvedServicesCount)
{
// After last service is resolved, stop the event loop,
// so the test case can gracefully exit.
chip::DeviceLayer::PlatformMgr().StopEventLoopTask();
chip::DeviceLayer::PlatformMgr().Shutdown();
exit(0);
}
}

Expand Down

0 comments on commit cbf5e3e

Please sign in to comment.