mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
When trying to run another instance exit with code 0 if activation of first instance was successful
This commit is contained in:
@@ -307,6 +307,11 @@ public class StartupUtil {
|
||||
Main.showMessage("Too Many Instances", message, true);
|
||||
}
|
||||
|
||||
if (status == SocketLock.ActivateStatus.ACTIVATED) {
|
||||
System.out.println("Already running");
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user