diff options
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r-- | x11vnc/cleanup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c index a81a798..3643c39 100644 --- a/x11vnc/cleanup.c +++ b/x11vnc/cleanup.c @@ -14,6 +14,7 @@ #include "connections.h" #include "macosx.h" #include "macosxCG.h" +#include "avahi.h" /* * Exiting and error handling routines @@ -129,6 +130,10 @@ void clean_up_exit (int ret) { ssl_helper_pid(0, 0); /* killall */ } + if (avahi) { + avahi_cleanup(); + } + #ifdef MACOSX if (client_connect_file) { if (strstr(client_connect_file, "/tmp/x11vnc-macosx-channel.") |