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

Move isRunning check from startPlugin to _startPlugin #21

Merged
merged 3 commits into from
Jun 17, 2021

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented Jun 17, 2021

_startPlugin is the private wrapper function used to start plugins in the PluginController. This PR moves the check for whether the requested plugin is already running from the public startPlugin to _startPlugin, so that this check is always done. A test case is added to test this check.

While we're here, also fixes plugin controller state initialization and makes the state constructor argument property optional.

@rekmarks rekmarks merged commit 07684f1 into main Jun 17, 2021
@rekmarks rekmarks deleted the refactor-startPlugin branch June 17, 2021 20:13
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