summaryrefslogtreecommitdiff
path: root/src/lib.c
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-07-18 19:37:14 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-07-21 13:53:01 (GMT)
commit1e8d128492cda7284fb61f3f0cb99588bf8f9fd8 (patch)
tree3e7cb162a8e4ecc335fbb5545233b087c8c55fb3 /src/lib.c
parent8437746494e6d414314f03a0b815dcf0b191ce4d (diff)
downloadsoup-transcoding-proxy-1e8d128492cda7284fb61f3f0cb99588bf8f9fd8.zip
soup-transcoding-proxy-1e8d128492cda7284fb61f3f0cb99588bf8f9fd8.tar.gz
server: Free server context with low priority
This allows functions that might use it to dispatch beforehand
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.c b/src/lib.c
index 2fe0c94..019b4f7 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -60,7 +60,7 @@ stp_on_gst_bus_message (GstBus *bus,
soup_message_set_status (ctx->msg, SOUP_STATUS_INTERNAL_SERVER_ERROR);
/* Cleanup in the default main context,
* because GHashTable is not thread-safe */
- g_main_context_invoke_full (NULL, G_PRIORITY_HIGH,
+ g_main_context_invoke_full (NULL, G_PRIORITY_LOW,
(GSourceFunc)invoke_g_hash_table_remove,
ctx, NULL);
break;
@@ -68,7 +68,7 @@ stp_on_gst_bus_message (GstBus *bus,
g_debug ("End of file");
/* Cleanup in the default main context,
* because GHashTable is not thread-safe */
- g_main_context_invoke_full (NULL, G_PRIORITY_HIGH,
+ g_main_context_invoke_full (NULL, G_PRIORITY_LOW,
(GSourceFunc)invoke_g_hash_table_remove,
ctx, NULL);
break;