zeroconf/Bonjour: disallow copying

This commit is contained in:
Max Kellermann 2021-02-24 13:46:26 +01:00
parent bd0aa74bdd
commit 06b9bdba2c

View File

@ -49,6 +49,9 @@ public:
DNSServiceRefDeallocate(service_ref);
}
BonjourHelper(const BonjourHelper &) = delete;
BonjourHelper &operator=(const BonjourHelper &) = delete;
void Cancel() noexcept {
socket_event.Cancel();
}