[gtk-vnc] Stop checking if threads are enabled in glib



commit 7e586f398317465c8bb1deea028231ed6be60ce8
Author: Daniel P. Berrangé <dan berrange com>
Date:   Mon Jan 6 16:51:36 2020 +0000

    Stop checking if threads are enabled in glib
    
    Threading is unconditionally enabled these days.
    
    Signed-off-by: Daniel P. Berrangé <berrange redhat com>

 src/vncconnection.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index ff3582b..47f04b3 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -1276,12 +1276,10 @@ static gboolean vnc_connection_tls_initialize(void)
     if (tlsinitialized)
         return TRUE;
 
-    if (g_thread_supported()) {
 #ifdef VNC_INIT_GCRYPT_THREADING
-        gcry_control(GCRYCTL_SET_THREAD_CBS, &gvnc_thread_impl);
+    gcry_control(GCRYCTL_SET_THREAD_CBS, &gvnc_thread_impl);
 #endif /* VNC_INIT_GCRYPT_THREADING */
-        gcry_check_version(NULL);
-    }
+    gcry_check_version(NULL);
 
     if (gnutls_global_init () < 0)
         return FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]