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: error if sandbox process has already started #135

Merged
merged 1 commit into from
May 13, 2022

Conversation

austinabell
Copy link
Contributor

Not sure if this is intentional, opening PR more as a question of why this is the case that the process handle can get overwritten here

Comment on lines 27 to +30
pub fn start(&mut self) -> anyhow::Result<()> {
if self.process.is_some() {
anyhow::bail!("Sandbox server already started");
}
Copy link
Member

Choose a reason for hiding this comment

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

huh, what case were you hitting where start was being called multiple times? Still good to have this in here just in case though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, but reading the logic it seemed like it could be a hidden bug if logic changed external to this method

@ChaoticTempest ChaoticTempest merged commit d5959d2 into main May 13, 2022
@ChaoticTempest ChaoticTempest deleted the austin/start_ov branch May 13, 2022 16:45
@frol frol mentioned this pull request Oct 4, 2023
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