ADBaseLibrary.AdobeHDS.FragmentProcessor.GetStream C# (CSharp) Method

GetStream() private method

private GetStream ( string url ) : Task
url string
return Task
        private async Task<WebStream> GetStream(string url)
        {
            int cnt = 0;
            do
            {
                WebStream ws = await WebStream.Get(url,null, uagent, headers, cookies, timeout, true, referer, proxy);
                if (ws == null || ws.StatusCode != HttpStatusCode.OK)
                {
                    ws?.Dispose();
                    cnt++;
                    if (cnt == retries)
                        return ws;
                }
                else
                    return ws;
            } while (true);

        }