From: adam Date: Wed, 7 Jul 2004 08:55:33 +0000 (+0000) Subject: dont let unexpected exceptions impede outgoing smtp X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=47c9a6f4bd712e0f83241e9ce20ce8b8770b850c;p=org.ibex.mail.git dont let unexpected exceptions impede outgoing smtp darcs-hash:20040707085533-5007d-87e3baa5fb43e5e80ae1564929ca258bd060b6da.gz --- diff --git a/src/org/ibex/mail/protocol/SMTP.java b/src/org/ibex/mail/protocol/SMTP.java index 3fdf362..4fea25e 100644 --- a/src/org/ibex/mail/protocol/SMTP.java +++ b/src/org/ibex/mail/protocol/SMTP.java @@ -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);