From 06b9bdba2c7e3ad1f6811f566dfdc9dd666f518a Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Wed, 24 Feb 2021 13:46:26 +0100
Subject: [PATCH] zeroconf/Bonjour: disallow copying

---
 src/zeroconf/Bonjour.cxx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/zeroconf/Bonjour.cxx b/src/zeroconf/Bonjour.cxx
index 056e35d55..0daf38f6d 100644
--- a/src/zeroconf/Bonjour.cxx
+++ b/src/zeroconf/Bonjour.cxx
@@ -49,6 +49,9 @@ public:
 		DNSServiceRefDeallocate(service_ref);
 	}
 
+	BonjourHelper(const BonjourHelper &) = delete;
+	BonjourHelper &operator=(const BonjourHelper &) = delete;
+
 	void Cancel() noexcept {
 		socket_event.Cancel();
 	}