From 1e8d128492cda7284fb61f3f0cb99588bf8f9fd8 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 19 Jul 2014 01:07:14 +0530 Subject: server: Free server context with low priority This allows functions that might use it to dispatch beforehand --- src/lib.c | 4 ++-- 1 file 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; -- cgit v0.11.2-2-gd1dd