Skip to content

Commit

Permalink
Check this at home.
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille authored and woody-apple committed Sep 16, 2021
1 parent cf4f24c commit 7cdbcf9
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 7cdbcf9

Please sign in to comment.