Author: ningjiang
Date: Fri Nov 6 02:54:28 2009
New Revision: 833285
URL: http://svn.apache.org/viewvc?rev=833285&view=rev
Log:
CAMEL-2129 applied patch with thanks to Christian
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java
URL:
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java?rev=833285&r1=833284&r2=833285&view=diff
==============================================================================
---
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java
(original)
+++
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ServiceSupport.java
Fri Nov 6 02:54:28 2009
@@ -57,7 +57,11 @@
ex = e;
} finally {
if (ex != null) {
- stop(childrenStarted);
+ try {
+ stop(childrenStarted);
+ } catch (Exception e) {
+ // Ignore exceptions as we want to show the
original exception
+ }
throw ex;
} else {
started.set(true);