mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixing lots of 'java.io.IOException: Stream closed' exceptions in logs
This commit is contained in:
@@ -128,7 +128,9 @@ public abstract class BaseDataReader {
|
||||
while (true) {
|
||||
boolean read = readAvailable();
|
||||
|
||||
if (isStopped) {
|
||||
if ((!read && isStopped) || mySleepingPolicy == SleepingPolicy.BLOCKING) {
|
||||
// in non-blocking mode, if we have read something on a previous step, we should check
|
||||
// if some additional output is available no matter whether the process is already stopped or not
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user