SDownload.Framework.Streams.SCTrackStream.RetryDownload C# (CSharp) Method

RetryDownload() private method

private RetryDownload ( ) : Task
return Task
        private async Task<bool> RetryDownload()
        {
            View.Report("Retrying");

            // Manual has already been tried, can't be done
            if (_forceManual)
                return false;

            // Set the appropriate method to try next
            if (_forceStream)
                _forceManual = true;
            else
                _forceStream = true;

            MainResource.Uri = new Uri(GetDownloadUrl());
            return await Download(true);
        }