mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 22:40:10 +01:00
dispatcher: move clearing @quit_id in handle_action()
First create and initialize @request, and then start it.
This commit is contained in:
parent
8143d895ca
commit
38fa197bab
1 changed files with 3 additions and 2 deletions
|
|
@ -635,8 +635,6 @@ handle_action (NMDBusDispatcher *dbus_dispatcher,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
nm_clear_g_source (&quit_id);
|
||||
|
||||
request = g_slice_new0 (Request);
|
||||
request->handler = h;
|
||||
request->debug = request_debug || debug;
|
||||
|
|
@ -677,6 +675,9 @@ handle_action (NMDBusDispatcher *dbus_dispatcher,
|
|||
g_ptr_array_add (request->scripts, s);
|
||||
}
|
||||
g_slist_free (sorted_scripts);
|
||||
|
||||
nm_clear_g_source (&quit_id);
|
||||
|
||||
h->num_requests_pending++;
|
||||
|
||||
for (i = 0; i < request->scripts->len; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue