[glib-networking/mcatanzaro/missing-main-context-pop] base: add missing main context pop after explicit sync handshake
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/missing-main-context-pop] base: add missing main context pop after explicit sync handshake
- Date: Fri, 17 May 2019 21:36:36 +0000 (UTC)
commit 7000d3c211fdda08c64b8d22bc3c940de2fe155c
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]