firewall: use nm_g_main_context_push_thread_default_if_necessary() in _fw_nft_call_communicate_cb()

There is no need to push (and pop) the same main-context.

(cherry picked from commit 654bb92a69)
This commit is contained in:
Thomas Haller 2021-06-15 18:24:11 +02:00
parent 4badc1f33a
commit 46533e7da4
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -419,7 +419,7 @@ _fw_nft_call_communicate_cb(GObject *source, GAsyncResult *result, gpointer user
{
_nm_unused nm_auto_pop_gmaincontext GMainContext *main_context =
nm_g_main_context_push_thread_default(NULL);
nm_g_main_context_push_thread_default_if_necessary(NULL);
nm_shutdown_wait_obj_register_object(call_data->subprocess, "nft-terminate");
G_STATIC_ASSERT_EXPR(200 < NM_SHUTDOWN_TIMEOUT_MS_WATCHDOG * 2 / 3);