Skip to content

Commit

Permalink
Apply suggestion from code review.
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
bzbarsky-apple and andy31415 authored Sep 27, 2024
1 parent 1f75d42 commit 8e2ed1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/address_resolve/AddressResolve_DefaultImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ CHIP_ERROR Resolver::Init(System::Layer * systemLayer)

void Resolver::Shutdown()
{
// mSystemLayer is set in ::Init, so if it's null that means the resolver
// has not been initialized or has already been shut down.
VerifyOrReturn(mSystemLayer != nullptr);

while (mActiveLookups.begin() != mActiveLookups.end())
Expand Down

0 comments on commit 8e2ed1d

Please sign in to comment.