Zond:fix: ошибка записи в "трубу"
This commit is contained in:
@@ -24,9 +24,12 @@ public class PipeInputStream extends InputStream {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((lastWritePos + strBytes.length) >= 1024) {
|
if ((lastWritePos + strBytes.length) >= buffer.length) {
|
||||||
wallPos = lastWritePos;
|
wallPos = lastWritePos;
|
||||||
lastWritePos = 0;
|
lastWritePos = 0;
|
||||||
|
if (lastReadPos == wallPos) {
|
||||||
|
lastReadPos = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
System.arraycopy(strBytes, 0, this.buffer, lastWritePos, strBytes.length);
|
System.arraycopy(strBytes, 0, this.buffer, lastWritePos, strBytes.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user