mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-23 04:11:54 -04:00
fixes an issue in the telnet ByteBuffer
This commit is contained in:
parent
6505f68484
commit
ed2d776844
@ -52,8 +52,10 @@ public class ByteBuffer {
|
|||||||
* deletes a byte from the tail of the buffer
|
* deletes a byte from the tail of the buffer
|
||||||
*/
|
*/
|
||||||
synchronized public void delete() {
|
synchronized public void delete() {
|
||||||
oldest = inc(oldest);
|
if (inBuffer > 0) {
|
||||||
inBuffer--;
|
oldest = inc(oldest);
|
||||||
|
inBuffer--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user