noch längerer timeout zum warten auf ready()
authorfelix <felix@a944a559-bf0e-0410-8ddc-85264b264b6c>
Tue, 13 Feb 2007 21:32:09 +0000 (21:32 +0000)
committerfelix <felix@a944a559-bf0e-0410-8ddc-85264b264b6c>
Tue, 13 Feb 2007 21:32:09 +0000 (21:32 +0000)
git-svn-id: https://www.internetallee.de/svn/bytewurf@5 a944a559-bf0e-0410-8ddc-85264b264b6c

projekte/netzschalter/src/Communication.java

index 1fdfa9b..e162902 100644 (file)
@@ -206,7 +206,7 @@ public class Communication {
     public synchronized int readBuffer(int[] gelesen,int length) throws IOException, Exception {\r
         int i=0; // init helper variables\r
         //byte [] gelesen = new byte[length.intValue()];\r
-        while (!dis.ready() && i++<20) {\r
+        while (!dis.ready() && i++<200) {\r
                Thread.sleep(100);\r
         }\r
         i=0;\r
@@ -232,7 +232,7 @@ public class Communication {
     public synchronized int readBuffer(byte[] gelesen,int length) throws IOException, Exception {\r
         int i=0; // init helper variables\r
         //byte [] gelesen = new byte[length.intValue()];\r
-        while (!dis.ready() && i++<20) {\r
+        while (!dis.ready() && i++<200) {\r
                Thread.sleep(100);\r
         }\r
         i=0;\r