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))
|
if (!e_client_check_refresh_supported (client))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
self->clients_synchronizing++;
|
||||||
|
|
||||||
e_client_refresh (client,
|
e_client_refresh (client,
|
||||||
NULL,
|
NULL,
|
||||||
on_client_refreshed,
|
on_client_refreshed,
|
||||||
self);
|
self);
|
||||||
|
|
||||||
self->clients_synchronizing++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SYNCHRONIZING]);
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SYNCHRONIZING]);
|
||||||
|
|||||||
Reference in New Issue
Block a user