Fix OOB, expose triple buffer
[nikiroo-utils.git] / src / jexer / io / TimeoutInputStream.java
index f1b140bcf31dd23f9160551940b24e2587d755dd..d540c60fb2137d392b001f18579082129db80cb6 100644 (file)
@@ -130,7 +130,7 @@ public class TimeoutInputStream extends InputStream {
             try {
                 // How long do we sleep for, eh?  For now we will go with 2
                 // millis.
-                Thread.currentThread().sleep(2);
+                Thread.sleep(2);
             } catch (InterruptedException e) {
                 // SQUASH
             }
@@ -189,7 +189,7 @@ public class TimeoutInputStream extends InputStream {
                 try {
                     // How long do we sleep for, eh?  For now we will go with
                     // 2 millis.
-                    Thread.currentThread().sleep(2);
+                    Thread.sleep(2);
                 } catch (InterruptedException e) {
                     // SQUASH
                 }
@@ -264,7 +264,7 @@ public class TimeoutInputStream extends InputStream {
                 try {
                     // How long do we sleep for, eh?  For now we will go with
                     // 2 millis.
-                    Thread.currentThread().sleep(2);
+                    Thread.sleep(2);
                 } catch (InterruptedException e) {
                     // SQUASH
                 }