Calling Service.advertise multiple times now throws an error, as suggested in #698.
Bugfix: prevent resource leak of Service callbacks
Description
As noted in #698, Service un-advertisement apparently has never removed the callback from the service server, which is probably not good.. for both resource leak reasons and possible unexpected behavior reasons like a callback being invoked even after unadvertisement.
Public API Changes
Calling
Service.advertise
multiple times now throws an error, as suggested in #698. Bugfix: prevent resource leak of Service callbacksDescription
As noted in #698, Service un-advertisement apparently has never removed the callback from the service server, which is probably not good.. for both resource leak reasons and possible unexpected behavior reasons like a callback being invoked even after unadvertisement.