| 1824 | } |
| 1825 | |
| 1826 | void Storage::OnFinishDownloading() |
| 1827 | { |
| 1828 | if (!m_diffsBeingApplied.empty() || !m_downloader->GetQueue().IsEmpty()) |
| 1829 | return; |
| 1830 | |
| 1831 | m_justDownloaded.clear(); |
| 1832 | |
| 1833 | m_downloadingPolicy->ScheduleRetry(m_failedCountries, [this](CountriesSet const & needReload) |
| 1834 | { |
| 1835 | for (auto const & country : needReload) |
| 1836 | { |
| 1837 | NodeStatuses status; |
| 1838 | GetNodeStatuses(country, status); |
| 1839 | if (status.m_error == NodeErrorCode::NoInetConnection) |
| 1840 | RetryDownloadNode(country); |
| 1841 | } |
| 1842 | }); |
| 1843 | |
| 1844 | ApplyPendingCountriesIfAny(); |
| 1845 | } |
| 1846 | |
| 1847 | void Storage::OnDiffStatusReceived(diffs::NameDiffInfoMap && diffs) |
| 1848 | { |
nothing calls this directly
no test coverage detected