Fix crash in weaved when re-publishing mDNS records

After calling StopPublishing() |entry_group_| is freed, so subsequent
call to CreateService() will segfault. Must re-create the entry group
before publishing the mDNS records.

Also the base class already has the generated GUID for device_id, so
use that instead of |service_name_|, since service ID should in theory
be persistent (or else clients will see "new device" each time we
change the mDNS records)

Change-Id: I8c58fc594c130e9f73528c2b9979f6d1196da8ea
2 files changed
tree: d4f10f611b4a3a976ba63990381d906c02fc8266
  1. buffet/
  2. Android.mk
  3. init.weaved.rc