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
1 changed files with 4 additions and 0 deletions

View File

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