Skip to content

Commit 59d272b

Browse files
committed
System Touch
1 parent 0b60b9a commit 59d272b

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

source/Main.java

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,25 @@ public class Main
3838

3939
protected static final String CONNECTION_STATUS_SERVER_HOST = "localhost";
4040

41+
public static void main(String...args)
42+
{
43+
Main main = new Main();
44+
}
45+
4146
public Main()
4247
{
43-
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
44-
try {
48+
Runtime.getRuntime().addShutdownHook(new Thread(() ->
49+
{
50+
try
51+
{
4552
String script = new File("scripts/shutdown.sh").getAbsolutePath();
53+
4654
new ProcessBuilder("bash", script).inheritIO().start().waitFor();
47-
} catch (Exception e) { e.printStackTrace(System.err); }
55+
}
56+
catch (Exception e)
57+
{
58+
e.printStackTrace(System.err);
59+
}
4860
}, "ShutdownHook"));
4961

5062
CommonRails.printStartRecipeSpinner();
@@ -93,9 +105,4 @@ public Main()
93105

94106
NITRO.BRIDGE.start();
95107
}
96-
97-
public static void main(String...args)
98-
{
99-
Main main = new Main();
100-
}
101108
}

0 commit comments

Comments
 (0)