Commit 5603e731 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Core pool size should be 1. Avoids JDK bug??


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1363 b35dd754-fafc-0310-a699-88a17e54d16e
parent 29b10ded
......@@ -87,7 +87,7 @@ public class EmailService {
* Constructs a new EmailService instance.
*/
private EmailService() {
executor = new ThreadPoolExecutor(0, 5, 60,
executor = new ThreadPoolExecutor(1, 5, 60,
TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
host = JiveGlobals.getProperty("mail.smtp.host", "localhost");
......@@ -138,7 +138,7 @@ public class EmailService {
if (messages.size() == 0) {
return;
}
executor.submit(new EmailTask(messages));
executor.execute(new EmailTask(messages));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment