Keep server file on the device until clean up

The server was unlinked (removed) just after it started.

In order to execute a new process using the server jarfile at any time
(typically to set the display power mode from another process), keep the
file until the server closes.
This commit is contained in:
Romain Vimont
2023-11-21 15:08:04 +01:00
parent 798727aa58
commit 890ba529c3

View File

@@ -146,8 +146,6 @@ public final class CleanUp {
} }
public static void main(String... args) { public static void main(String... args) {
unlinkSelf();
try { try {
// Wait for the server to die // Wait for the server to die
System.in.read(); System.in.read();
@@ -187,5 +185,7 @@ public final class CleanUp {
Device.setScreenPowerMode(Device.POWER_MODE_NORMAL); Device.setScreenPowerMode(Device.POWER_MODE_NORMAL);
} }
} }
unlinkSelf();
} }
} }