dev option

This commit is contained in:
rusefillc 2022-01-01 23:45:52 -05:00
parent 99f7b7c2e3
commit 0471256c03
2 changed files with 3 additions and 1 deletions

View File

@ -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>

View File

@ -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);