Skip to content

Commit

Permalink
Check this at home. (#9744)
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille authored and pull[bot] committed Oct 20, 2021
1 parent b815f3f commit c76d10f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/platform/Linux/MdnsImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,10 @@ CHIP_ERROR MdnsAvahi::PublishService(const MdnsService & service)
CHIP_ERROR MdnsAvahi::StopPublish()
{
CHIP_ERROR error = CHIP_NO_ERROR;

VerifyOrExit(avahi_entry_group_reset(mGroup) == 0, error = CHIP_ERROR_INTERNAL);
mPublishedServices.clear();
if (mGroup) {
VerifyOrExit(avahi_entry_group_reset(mGroup) == 0, error = CHIP_ERROR_INTERNAL);
}
exit:
return error;
}
Expand Down

0 comments on commit c76d10f

Please sign in to comment.