dev option
This commit is contained in:
parent
baa7c050b8
commit
e9086e3f81
|
@ -3,7 +3,7 @@
|
|||
<option name="MAIN_CLASS_NAME" value="com.rusefi.Launcher" />
|
||||
<module name="ui" />
|
||||
<option name="PROGRAM_PARAMETERS" value="auto" />
|
||||
<option name="VM_PARAMETERS" value="-Dini_file_path=../firmware/tunerstudio/generated -Dshow_etb_pane=true -Dhigh_speed_logger_rpm=10000" />
|
||||
<option name="VM_PARAMETERS" value="-Dini_file_path=../firmware/tunerstudio/generated -Dshow_etb_pane=true -Dhigh_speed_logger_rpm=10000 -DSKIP_ONE_INSTANCE_CHECK=true" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
|
|
|
@ -16,6 +16,8 @@ public class JustOneInstance {
|
|||
private static final int LOCAL_CONNECTION_TIMEOUT_MS = 100;
|
||||
|
||||
public static boolean isAlreadyRunning() {
|
||||
if (Boolean.getBoolean("SKIP_ONE_INSTANCE_CHECK"))
|
||||
return false;
|
||||
try {
|
||||
Socket clientSocket = new Socket();
|
||||
clientSocket.connect(new InetSocketAddress("localhost", PORT), LOCAL_CONNECTION_TIMEOUT_MS);
|
||||
|
|
Loading…
Reference in New Issue