[glib-networking/mcatanzaro/missing-main-context-pop: 2/2] base: add missing main context pop after explicit sync handshake



commit fe0fa1c1eb670b1c54282920c378f0b8d7501390
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Fri May 17 16:34:25 2019 -0500

    base: add missing main context pop after explicit sync handshake
    
    We do have tests to cover explicit sync handshake, but they didn't catch
    this.

 tls/base/gtlsconnection-base.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tls/base/gtlsconnection-base.c b/tls/base/gtlsconnection-base.c
index 76defda..bc04e15 100644
--- a/tls/base/gtlsconnection-base.c
+++ b/tls/base/gtlsconnection-base.c
@@ -1522,6 +1522,7 @@ g_tls_connection_base_handshake (GTlsConnection   *conn,
   g_task_run_in_thread (task, handshake_thread);
   crank_sync_handshake_context (tls, cancellable);
 
+  g_main_context_pop_thread_default (priv->handshake_context);
   g_clear_pointer (&priv->handshake_context, g_main_context_unref);
 
   success = finish_handshake (tls, task, &my_error);


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