Commit 601b2d5f authored by Jim Nelson's avatar Jim Nelson

Fixes a bug in last commit -- app won't close if no metadata was auto-committed.

parent b4c6f9c6
...@@ -398,6 +398,9 @@ public class Workers { ...@@ -398,6 +398,9 @@ public class Workers {
if (max_threads <= 0 && max_threads != UNLIMITED_THREADS) if (max_threads <= 0 && max_threads != UNLIMITED_THREADS)
max_threads = 1; max_threads = 1;
// event starts as set because queue is empty
empty_event.notify();
try { try {
thread_pool = new ThreadPool(thread_start, max_threads, exclusive); thread_pool = new ThreadPool(thread_start, max_threads, exclusive);
} catch (ThreadError err) { } catch (ThreadError err) {
......
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