mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 05:50:08 +01:00
cli: use should_wait consistently
It's a semaphore, not a boolean.
This commit is contained in:
parent
ef8d696252
commit
a30224f6af
2 changed files with 4 additions and 4 deletions
|
|
@ -7958,7 +7958,7 @@ do_connection_clone (NmCli *nmc, gboolean temporary, int argc, char **argv)
|
|||
clone_connection_cb,
|
||||
info);
|
||||
|
||||
nmc->should_wait = TRUE;
|
||||
nmc->should_wait++;
|
||||
finish:
|
||||
if (new_connection)
|
||||
g_object_unref (new_connection);
|
||||
|
|
@ -8360,7 +8360,7 @@ do_connection_import (NmCli *nmc, gboolean temporary, int argc, char **argv)
|
|||
add_connection_cb,
|
||||
info);
|
||||
|
||||
nmc->should_wait = TRUE;
|
||||
nmc->should_wait++;
|
||||
finish:
|
||||
if (connection)
|
||||
g_object_unref (connection);
|
||||
|
|
|
|||
|
|
@ -1984,7 +1984,7 @@ do_device_reapply (NmCli *nmc, int argc, char **argv)
|
|||
}
|
||||
|
||||
nmc->nowait_flag = (nmc->timeout == 0);
|
||||
nmc->should_wait = TRUE;
|
||||
nmc->should_wait++;
|
||||
|
||||
info = g_slice_new0 (DeviceCbInfo);
|
||||
info->nmc = nmc;
|
||||
|
|
@ -3325,7 +3325,7 @@ do_device_wifi_hotspot (NmCli *nmc, int argc, char **argv)
|
|||
|
||||
/* Activate the connection now */
|
||||
nmc->nowait_flag = (nmc->timeout == 0);
|
||||
nmc->should_wait = TRUE;
|
||||
nmc->should_wait++;
|
||||
|
||||
info = g_malloc0 (sizeof (AddAndActivateInfo));
|
||||
info->nmc = nmc;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue