dont let unexpected exceptions impede outgoing smtp
authoradam <adam@megacz.com>
Wed, 7 Jul 2004 08:55:33 +0000 (08:55 +0000)
committeradam <adam@megacz.com>
Wed, 7 Jul 2004 08:55:33 +0000 (08:55 +0000)
darcs-hash:20040707085533-5007d-87e3baa5fb43e5e80ae1564929ca258bd060b6da.gz

src/org/ibex/mail/protocol/SMTP.java

index 3fdf362..4fea25e 100644 (file)
@@ -154,7 +154,8 @@ public class SMTP {
                 while(true) {
                     for(Mailbox.Iterator it = spool.iterator(); it.next(); )
                         try                   { if (attempt(it.cur())) it.delete(); }
-                        catch (IOException e) { Log.error(SMTP.Outgoing.class, e); }
+                        catch (Exception e)   { Log.error(SMTP.Outgoing.class, e); }
+                    }
                     synchronized(Outgoing.class) {
                         Log.info(SMTP.Outgoing.class, "outgoing thread going to sleep");
                         Outgoing.class.wait(5 * 60 * 1000);