core/manager: Increment before potentially decrementing
Otherwise we can go backwards first. Not going to break anything, but this is a more robust logic.
This commit is contained in:
@@ -1018,12 +1018,12 @@ gcal_manager_refresh (GcalManager *self)
|
||||
if (!e_client_check_refresh_supported (client))
|
||||
continue;
|
||||
|
||||
self->clients_synchronizing++;
|
||||
|
||||
e_client_refresh (client,
|
||||
NULL,
|
||||
on_client_refreshed,
|
||||
self);
|
||||
|
||||
self->clients_synchronizing++;
|
||||
}
|
||||
|
||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SYNCHRONIZING]);
|
||||
|
||||
Reference in New Issue
Block a user