Skip to content

Commit 18e3f95

Browse files
Update src/platform/Darwin/DnssdImpl.cpp
Co-authored-by: Karsten Sperling <113487422+ksperling-apple@users.noreply.github.com>
1 parent fef9452 commit 18e3f95

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/platform/Darwin/DnssdImpl.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,8 @@ namespace {
177177
void OpenThreadTimerExpiredCallback(System::Layer * systemLayer, void * callbackContext)
178178
{
179179
ChipLogProgress(Discovery, "Mdns: Resolve completed on the open thread domain.");
180-
VerifyOrReturn(callbackContext != nullptr && systemLayer != nullptr,
181-
ChipLogError(Discovery, "Open thread timer callback context is null"));
182-
183-
auto sdCtx = reinterpret_cast<ResolveContext *>(callbackContext);
184-
VerifyOrReturn(sdCtx != nullptr, ChipLogError(Discovery, "Resolve Context is null"));
180+
auto sdCtx = static_cast<ResolveContext *>(callbackContext);
181+
VerifyOrDie(sdCtx != nullptr);
185182
sdCtx->Finalize();
186183
hasOpenThreadTimerStarted = false;
187184
}

0 commit comments

Comments
 (0)