fixes an issue in the telnet ByteBuffer

This commit is contained in:
hneemann 2021-04-30 09:41:00 +02:00
parent 6505f68484
commit ed2d776844

View File

@ -52,8 +52,10 @@ public class ByteBuffer {
* deletes a byte from the tail of the buffer
*/
synchronized public void delete() {
oldest = inc(oldest);
inBuffer--;
if (inBuffer > 0) {
oldest = inc(oldest);
inBuffer--;
}
}
/**