diff -r 5a4a41cfc0a3 -r 3af4237e4a15 org/sonews/mlgw/MailPoller.java --- a/org/sonews/mlgw/MailPoller.java Thu Aug 20 21:31:03 2009 +0200 +++ b/org/sonews/mlgw/MailPoller.java Wed Jun 30 14:48:53 2010 +0200 @@ -63,7 +63,7 @@ { Log.get().info("Starting Mailinglist Poller..."); int errors = 0; - while(isRunning() && errors < 5) + while(isRunning()) { try { @@ -127,7 +127,7 @@ // AuthentificationFailedException may be thrown if credentials are // bad or if the Mailbox is in use (locked). ex.printStackTrace(); - errors++; + errors = errors < 5 ? errors + 1 : errors; } catch(InterruptedException ex) { @@ -137,12 +137,12 @@ catch(MessagingException ex) { ex.printStackTrace(); - errors++; + errors = errors < 5 ? errors + 1 : errors; } catch(Exception ex) { ex.printStackTrace(); - errors++; + errors = errors < 5 ? errors + 1 : errors; } } Log.get().severe("MailPoller exited.");