diff options
Diffstat (limited to 'src/AvahiPoll.cxx')
-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)); } |