[Bugfix] Call gnutls_bye only when handshake is completed.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4275 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/CSecurityTLS.h b/common/rfb/CSecurityTLS.h
index bd6297d..c19307e 100644
--- a/common/rfb/CSecurityTLS.h
+++ b/common/rfb/CSecurityTLS.h
@@ -55,7 +55,7 @@
     static UserMsgBox *msg;
 
   protected:
-    void shutdown();
+    void shutdown(bool needbye);
     void freeResources();
     void setParam();
     void checkSession();