Commit b5bf5d6c authored by Gabriel Ivascu's avatar Gabriel Ivascu

sync-service: Fix crash when signing out before the initial sync starts

parent 083c9bc8
......@@ -2797,9 +2797,10 @@ void
ephy_sync_service_start_sync (EphySyncService *self)
{
g_assert (EPHY_IS_SYNC_SERVICE (self));
g_assert (ephy_sync_utils_user_is_signed_in ());
g_assert (self->sync_periodically);
ephy_sync_service_sync_internal (self);
ephy_sync_service_schedule_periodical_sync (self);
if (ephy_sync_utils_user_is_signed_in ()) {
ephy_sync_service_sync_internal (self);
ephy_sync_service_schedule_periodical_sync (self);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment