mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-22 11:55:15 -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
|
||||
*/
|
||||
synchronized public void delete() {
|
||||
oldest = inc(oldest);
|
||||
inBuffer--;
|
||||
if (inBuffer > 0) {
|
||||
oldest = inc(oldest);
|
||||
inBuffer--;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user