X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fio%2FTimeoutInputStream.java;h=db9eb4a6006897ea1a576c123cea0df0acf23a68;hb=7d922e0dfd9a6da42b84e01d52adeec6fff10025;hp=f1b140bcf31dd23f9160551940b24e2587d755dd;hpb=5dfd1c11947e9cb32fcac4772f1b16879d9ffe67;p=fanfix.git diff --git a/src/jexer/io/TimeoutInputStream.java b/src/jexer/io/TimeoutInputStream.java index f1b140b..db9eb4a 100644 --- a/src/jexer/io/TimeoutInputStream.java +++ b/src/jexer/io/TimeoutInputStream.java @@ -73,7 +73,7 @@ public class TimeoutInputStream extends InputStream { } /** - * Public constructor, using the default 10 bits per byte. + * Public constructor. * * @param stream the wrapped InputStream * @param timeoutMillis the timeout value in millis. If it takes longer @@ -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 }