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

Detach all engines when the window closed #700

Merged
merged 2 commits into from
Apr 20, 2020
Merged

Detach all engines when the window closed #700

merged 2 commits into from
Apr 20, 2020

Conversation

ebifrier
Copy link
Contributor

@ebifrier ebifrier commented Apr 20, 2020

Running the engine over SSH may leave the engine's processes on the remote computer. This PR prevents it.
Also, if await sabaki.detachEngines() is done before sabaki.window.close(), it may take a long time to close the window, so await is at the end.

gtplogger.close()
this.closeWindow = true
sabaki.window.close()
await promise
Copy link
Member

Choose a reason for hiding this comment

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

In this case, I don't think we even need to await the promise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, that's right. Thanks!

@yishn yishn merged commit 02e97b9 into SabakiHQ:master Apr 20, 2020
@ebifrier ebifrier deleted the detachengines branch April 21, 2020 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants