AvahiPoll: don't close the dbus socket

Avoid closing it twice.
This commit is contained in:
Max Kellermann 2013-11-07 00:29:20 +01:00
parent 899c2bb9cc
commit a846a4c643

View File

@ -58,6 +58,10 @@ public:
Schedule(FromAvahiWatchEvent(_event)); Schedule(FromAvahiWatchEvent(_event));
} }
~AvahiWatch() {
Steal();
}
static void WatchUpdate(AvahiWatch *w, AvahiWatchEvent event) { static void WatchUpdate(AvahiWatch *w, AvahiWatchEvent event) {
w->Schedule(FromAvahiWatchEvent(event)); w->Schedule(FromAvahiWatchEvent(event));
} }