AvahiPoll: don't close the dbus socket
Avoid closing it twice.
This commit is contained in:
parent
899c2bb9cc
commit
a846a4c643
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue