From: felix Date: Tue, 13 Feb 2007 21:32:09 +0000 (+0000) Subject: noch längerer timeout zum warten auf ready() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e37712c9595fc2d3b47fbaa82d447920e7912fac;p=bytewurf.git noch längerer timeout zum warten auf ready() git-svn-id: https://www.internetallee.de/svn/bytewurf@5 a944a559-bf0e-0410-8ddc-85264b264b6c --- 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;