Skip to content

Commit 8e2ed1d

Browse files
Apply suggestion from code review.
Co-authored-by: Andrei Litvin <[email protected]>
1 parent 1f75d42 commit 8e2ed1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/address_resolve/AddressResolve_DefaultImpl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ CHIP_ERROR Resolver::Init(System::Layer * systemLayer)
248248

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

253255
while (mActiveLookups.begin() != mActiveLookups.end())

0 commit comments

Comments
 (0)