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

fix: Added missing flag to prevent concurrent downloads of the same update. #2960

Merged
merged 3 commits into from
May 9, 2020

Conversation

tonyanziano
Copy link
Contributor

@tonyanziano tonyanziano commented May 8, 2020

Description

This PR adds a line that flips a flag to prevent multiple downloads of the same update.

(Must have missed this in the original auto update PR 😮)

This check was already there, but nothing was ever flipping downloadingUpdate to true.

Task Item

fixes #2226

@github-actions
Copy link

github-actions bot commented May 8, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling b9486df on toanzian/prevent-multiple-updates into 4c69132 on master.

@@ -57,6 +57,7 @@ export class AppUpdater extends EventEmitter {

public downloadUpdate() {
if (!this.downloadingUpdate) {
this.downloadingUpdate = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to set this to false when it's finished?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It already is being set to false in resetToIdle() which is called on error, finished downloading, or update unavailable.

@cwhitten cwhitten merged commit 60582fd into master May 9, 2020
@cwhitten cwhitten deleted the toanzian/prevent-multiple-updates branch May 9, 2020 15:37
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
microsoft#2960)

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants