Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloader hangs when executed with no items #877

Merged
merged 5 commits into from Aug 1, 2018
Merged

Conversation

@StanleyGoldman
Copy link
Member

StanleyGoldman commented Jul 31, 2018

Might be related to: #841

Depends on:

Testing local builds, where the conditions for downloading resources are slightly different.
I found an issue where the Downloader will hang when RunSynchronously is called with no items in the queue.

if (!state.GitZipExists && !state.GitIsValid && state.GitPackage != null)
downloader.QueueDownload(state.GitPackage.Uri, installDetails.ZipPath);
if (!state.GitLfsZipExists && !state.GitLfsIsValid && state.GitLfsPackage != null)
downloader.QueueDownload(state.GitLfsPackage.Uri, installDetails.ZipPath);
downloader.RunSynchronously();

It hangs because TrySetResult/TrySetException is never called.

…-queue
@StanleyGoldman StanleyGoldman force-pushed the fixes/empty-task-queue branch from c2df2a5 to 801d033 Aug 1, 2018
@shana shana merged commit d586e14 into master Aug 1, 2018
2 checks passed
2 checks passed
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@shana shana deleted the fixes/empty-task-queue branch Aug 1, 2018
@sguthals sguthals mentioned this pull request Oct 10, 2018
6 of 8 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.