diff options
author | Max Kellermann <max@duempel.org> | 2013-11-07 00:29:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-07 01:10:07 +0100 |
commit | a846a4c6434afe77fd3378465e7c3db7ae846dd5 (patch) | |
tree | 796b2581098aa0f65e5f4e26db24302c679265cb | |
parent | 899c2bb9cc618e887709f933147960297924cb46 (diff) | |
download | mpd-a846a4c6434afe77fd3378465e7c3db7ae846dd5.tar.gz mpd-a846a4c6434afe77fd3378465e7c3db7ae846dd5.tar.xz mpd-a846a4c6434afe77fd3378465e7c3db7ae846dd5.zip |
AvahiPoll: don't close the dbus socket
Avoid closing it twice.
Diffstat (limited to '')
-rw-r--r-- | src/AvahiPoll.cxx | 4 |
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)); } |