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(lightning): Limit lm.start Calls #182

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Conversation

coreyphillips
Copy link
Collaborator

This PR:

  • Prevents simultaneous calls to lm.start.
  • Will allow for multiple calls if a new account name is passed to the lm.start method.
  • Adds isStarting, pendingStartPromises & previousAccountName to lightning-manager.ts.
  • Adds resolveAllPendingStartPromises & handleStartError to lightning-manager.ts.
  • Updates start method in lightning-manager.ts accordingly.

Prevents simultaneous calls to lm.start.
@Jasonvdb Jasonvdb merged commit 50b625d into master Oct 17, 2023
5 of 6 checks passed
@Jasonvdb Jasonvdb deleted the limit-lm-start-calls branch October 17, 2023 13:34
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