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

Not Asking to Stop Old Instance #175

Open
SEGACD32XMODEL1 opened this issue Oct 19, 2022 · 1 comment
Open

Not Asking to Stop Old Instance #175

SEGACD32XMODEL1 opened this issue Oct 19, 2022 · 1 comment

Comments

@SEGACD32XMODEL1
Copy link

Nothing shows up to tell about the older instance after opening again. It just lines up next to the old one in the task manager.

@Nerixyz
Copy link
Owner

Nerixyz commented Oct 19, 2022

Does the other instance listen on the same port? Instances are per port:

let instance_id = HSTRING::from(format!(
"current-song2::main-executable::{}",
CONFIG.server.port
));
if !single_instance::try_create_new_instance(&instance_id) {
if MessageBox::<YesNo>::information(w!(
"Another instance is already running. Kill the other instance?"
))

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

No branches or pull requests

2 participants