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.
pull/4446/head
Romain Vimont 6 months ago
parent 798727aa58
commit 890ba529c3

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

Loading…
Cancel
Save