Network offline/online detection for hist sync / bug fixes.
Network offline/online detection for hist sync / bug fixes.

Wait for the network before doing sync.  Esp following a OS sleep state
the network is "groggy" to resume.

Fixed an issue in sync engine refresh that would cause spurious calls to
sync jobs when the are deferred due to error state.

mayfield/strava-sauce,mayfield/strava-sauce