mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
AppMain: Return from "Monitor Ctrl-Break" thread once hitting EOF
Otherwise it keeps looping in a busy wait forever, burning out 100% of CPU.
This commit is contained in:
@@ -62,7 +62,7 @@ public class AppMainV2 {
|
||||
try {
|
||||
while (true) {
|
||||
String msg = reader.readLine();
|
||||
if ("TERM".equals(msg)) {
|
||||
if (msg == null || "TERM".equals(msg)) {
|
||||
return;
|
||||
}
|
||||
else if ("BREAK".equals(msg)) {
|
||||
|
||||
Reference in New Issue
Block a user