mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-15 11:30:32 +01:00
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:
parent
4badc1f33a
commit
46533e7da4
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue