mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-30 09:50:42 +02:00
cli: use nm_clear_g_source() util in quit() functions
This commit is contained in:
parent
199525ba52
commit
2e974baa15
2 changed files with 2 additions and 9 deletions
|
|
@ -502,12 +502,8 @@ usage_connection_export (void)
|
|||
static void
|
||||
quit (void)
|
||||
{
|
||||
if (progress_id) {
|
||||
g_source_remove (progress_id);
|
||||
progress_id = 0;
|
||||
if (nm_clear_g_source (&progress_id))
|
||||
nmc_terminal_erase_line ();
|
||||
}
|
||||
|
||||
g_main_loop_quit (loop);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -451,11 +451,8 @@ usage_device_lldp (void)
|
|||
static void
|
||||
quit (void)
|
||||
{
|
||||
if (progress_id) {
|
||||
g_source_remove (progress_id);
|
||||
if (nm_clear_g_source (&progress_id))
|
||||
nmc_terminal_erase_line ();
|
||||
}
|
||||
|
||||
g_main_loop_quit (loop);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue