From 0ef122b61c4bc1f0652cd98fcc331e484b00ea0f Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 16 Apr 2006 18:31:48 +0000 Subject: Apache SSL gateway. More web proxy cases for Java and ssl_vncviewer. --- x11vnc/cleanup.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'x11vnc/cleanup.c') diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c index e966d61..f41112d 100644 --- a/x11vnc/cleanup.c +++ b/x11vnc/cleanup.c @@ -122,6 +122,11 @@ void clean_up_exit (int ret) { /* remove the shm areas: */ clean_shm(0); + stop_stunnel(); + if (use_openssl) { + ssl_helper_pid(0, 0); /* killall */ + } + if (! dpy) exit(ret); /* raw_rb hack */ /* X keyboard cleanups */ @@ -139,11 +144,6 @@ void clean_up_exit (int ret) { if (use_solid_bg) { solid_bg(1); } - stop_stunnel(); - if (use_openssl) { - ssl_helper_pid(0, 0); /* killall */ - } - X_LOCK; XTestDiscard_wr(dpy); #if LIBVNCSERVER_HAVE_LIBXDAMAGE -- cgit v1.2.3