Skip to content
This repository was archived by the owner on Aug 18, 2026. It is now read-only.

Commit c9e63e1

Browse files
committed
krill issue
1 parent f4db1f9 commit c9e63e1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/bz-application.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ bz_application_sync_remotes_action (GSimpleAction *action,
615615

616616
g_assert (BZ_IS_APPLICATION (self));
617617

618+
if (self->sync != NULL &&
619+
dex_future_is_pending (self->sync))
620+
return;
621+
618622
dex_clear (&self->sync);
619623
self->sync = make_sync_future (self);
620624
}
@@ -1883,8 +1887,6 @@ network_status_changed (BzApplication *self,
18831887
is_metered = g_network_monitor_get_network_metered (network);
18841888

18851889
if (!bz_state_info_get_busy (self->state) &&
1886-
(self->sync == NULL ||
1887-
!dex_future_is_pending (self->sync)) &&
18881890
((!was_connected &&
18891891
have_connection &&
18901892
!is_metered) ||

0 commit comments

Comments
 (0)