From e37712c9595fc2d3b47fbaa82d447920e7912fac Mon Sep 17 00:00:00 2001 From: felix Date: Tue, 13 Feb 2007 21:32:09 +0000 Subject: [PATCH] =?utf8?q?noch=20l=C3=A4ngerer=20timeout=20zum=20warten=20?= =?utf8?q?auf=20ready()?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://www.internetallee.de/svn/bytewurf@5 a944a559-bf0e-0410-8ddc-85264b264b6c --- projekte/netzschalter/src/Communication.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projekte/netzschalter/src/Communication.java b/projekte/netzschalter/src/Communication.java index 1fdfa9b..e162902 100644 --- a/projekte/netzschalter/src/Communication.java +++ b/projekte/netzschalter/src/Communication.java @@ -206,7 +206,7 @@ public class Communication { public synchronized int readBuffer(int[] gelesen,int length) throws IOException, Exception { int i=0; // init helper variables //byte [] gelesen = new byte[length.intValue()]; - while (!dis.ready() && i++<20) { + while (!dis.ready() && i++<200) { Thread.sleep(100); } i=0; @@ -232,7 +232,7 @@ public class Communication { public synchronized int readBuffer(byte[] gelesen,int length) throws IOException, Exception { int i=0; // init helper variables //byte [] gelesen = new byte[length.intValue()]; - while (!dis.ready() && i++<20) { + while (!dis.ready() && i++<200) { Thread.sleep(100); } i=0; -- 2.11.0