Skip to content

Commit

Permalink
Addressed comment by bzbarsky-apple simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
pgregorr-amazon committed Apr 4, 2024
1 parent af15c80 commit 486e009
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/android/DnssdImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,14 @@ CHIP_ERROR ChipDnssdStopBrowse(intptr_t browseIdentifier)

env->CallVoidMethod(sBrowserObject.ObjectRef(), sStopBrowseMethod, reinterpret_cast<jlong>(ctx->callback));

chip::Platform::Delete(ctx);
if (env->ExceptionCheck())
{
ChipLogError(Discovery, "Java exception in ChipDnssdStopBrowse");
env->ExceptionDescribe();
env->ExceptionClear();
chip::Platform::Delete(ctx);
return CHIP_JNI_ERROR_EXCEPTION_THROWN;
}
chip::Platform::Delete(ctx);

return CHIP_NO_ERROR;
}
Expand Down

0 comments on commit 486e009

Please sign in to comment.