edits in print messages in kilServer Method

This commit is contained in:
Nirothipan 2017-06-20 11:12:31 +05:30
parent 702287e09b
commit 6acf7c4225

View File

@ -761,12 +761,14 @@ public class TryIt {
try {
processKillServer = processBuilderKillServer.start();
} catch (IOException ignored) {
// process works if restarted
System.out.println("If the device doesn't start properly, stop running the script and restart again");
}
try {
processKillServer.waitFor();
if (processKillServer != null) {
processKillServer.waitFor();
}
} catch (InterruptedException ignored) {
// can be continued
System.out.println("If the device doesn't start properly, stop running the script and restart again");
}
}