From 4261b1c2d0c3fe0b4ec02abc94a40acb8b90a9b9 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 11 Feb 2013 07:00:09 -0800 Subject: [PATCH] Quick hack to stop core dumps on shutdown. The client needs to be shutdown before the job queue. This just prevents it from tripping. --- src/cpp/ripple/JobQueue.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpp/ripple/JobQueue.cpp b/src/cpp/ripple/JobQueue.cpp index 53d98484b..6ecc86791 100644 --- a/src/cpp/ripple/JobQueue.cpp +++ b/src/cpp/ripple/JobQueue.cpp @@ -101,7 +101,9 @@ void JobQueue::addJob(JobType type, const boost::function& jobFunc) assert(type != jtINVALID); boost::mutex::scoped_lock sl(mJobLock); - assert(mThreadCount != 0); // do not add jobs to a queue with no threads + + if (type != jtCLIENT) // FIXME: Workaround incorrect client shutdown ordering + assert(mThreadCount != 0); // do not add jobs to a queue with no threads mJobSet.insert(Job(type, ++mLastJob, mJobLoads[type], jobFunc)); ++mJobCounts[type];