mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
They say Thread.yield() doesn't work reliably on some platforms.
This commit is contained in:
@@ -323,7 +323,12 @@ public class OSProcessHandler extends ProcessHandler {
|
||||
processRequest(request);
|
||||
if (!request.isClosed()) addRequest(request);
|
||||
|
||||
Thread.yield();
|
||||
try {
|
||||
Thread.sleep(1L);
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user