Current code is: } *catch* (BindException e) { * if* (i == 10) { * throw* e; } *else* { * long* waitUntil = System.currentTimeMillis() + 1000; * for* (;;) { * long* l = waitUntil - System.currentTimeMillis(); * if* (l > 0) { * try* { Thread.sleep(l); } *catch* (InterruptedException ex) { } }
Pls, can you describe me how will end this for(;;) cycle? Shouldn't ne there something like if(l>0){ //wait } else break; Bye Stano On 8/1/06, Jochen Wiedmann <[EMAIL PROTECTED]> wrote:
Stanislav Miklik wrote: > Selected text seems to me like neverending cycle. I don't see the way out > and also variable l is always l<=0. You are right for the l<=0. Fixed. As for the neverending cycle, I can't follow you: for (int i = 1; ; i++) { ... if (i == 10) { throw e; } } Jochen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]