From 47c9a6f4bd712e0f83241e9ce20ce8b8770b850c Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 7 Jul 2004 08:55:33 +0000 Subject: [PATCH] dont let unexpected exceptions impede outgoing smtp darcs-hash:20040707085533-5007d-87e3baa5fb43e5e80ae1564929ca258bd060b6da.gz --- src/org/ibex/mail/protocol/SMTP.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.7.10.4