From a846a4c6434afe77fd3378465e7c3db7ae846dd5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 7 Nov 2013 00:29:20 +0100 Subject: [PATCH] AvahiPoll: don't close the dbus socket Avoid closing it twice. --- src/AvahiPoll.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AvahiPoll.cxx b/src/AvahiPoll.cxx index f3e2f596c..0d5a43dad 100644 --- a/src/AvahiPoll.cxx +++ b/src/AvahiPoll.cxx @@ -58,6 +58,10 @@ public: Schedule(FromAvahiWatchEvent(_event)); } + ~AvahiWatch() { + Steal(); + } + static void WatchUpdate(AvahiWatch *w, AvahiWatchEvent event) { w->Schedule(FromAvahiWatchEvent(event)); }