summaryrefslogtreecommitdiffstats
path: root/x11vnc/cleanup.c
diff options
context:
space:
mode:
authorrunge <runge>2006-04-16 18:31:48 +0000
committerrunge <runge>2006-04-16 18:31:48 +0000
commit0ef122b61c4bc1f0652cd98fcc331e484b00ea0f (patch)
treed192e55f2d6ac15518913ab428d46e9583f02689 /x11vnc/cleanup.c
parentd14cf0a84c88a02222caad1692228584b610aacc (diff)
downloadlibtdevnc-0ef122b61c4bc1f0652cd98fcc331e484b00ea0f.tar.gz
libtdevnc-0ef122b61c4bc1f0652cd98fcc331e484b00ea0f.zip
Apache SSL gateway. More web proxy cases for Java and ssl_vncviewer.
Diffstat (limited to 'x11vnc/cleanup.c')
-rw-r--r--x11vnc/cleanup.c10
1 files changed, 5 insertions, 5 deletions
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