aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-07 00:29:20 +0100
committerMax Kellermann <max@duempel.org>2013-11-07 01:10:07 +0100
commita846a4c6434afe77fd3378465e7c3db7ae846dd5 (patch)
tree796b2581098aa0f65e5f4e26db24302c679265cb
parent899c2bb9cc618e887709f933147960297924cb46 (diff)
downloadmpd-a846a4c6434afe77fd3378465e7c3db7ae846dd5.tar.gz
mpd-a846a4c6434afe77fd3378465e7c3db7ae846dd5.tar.xz
mpd-a846a4c6434afe77fd3378465e7c3db7ae846dd5.zip
AvahiPoll: don't close the dbus socket
Avoid closing it twice.
-rw-r--r--src/AvahiPoll.cxx4
1 files changed, 4 insertions, 0 deletions
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));
}