diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-22 06:08:34 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-22 06:08:34 +0000 |
commit | 8c771c8ecd9bdc6b3ef0d5417db9bb9917b65fa9 (patch) | |
tree | a3671bc719d351a822b3728323e6456f163af2c3 /sca-cpp/trunk/components/chat/chatter.cpp | |
parent | d11cbfda813c7c6b32c06ddb33242fe3c82514eb (diff) |
Moved component start calls from HTTPD postConfig to childInit, to give components an opportunity to start and setup connections and resources in each HTTPD child process. Adjusted utility components and test cases to this change. Minor code cleanup of Java components and integration tests.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@912491 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/components/chat/chatter.cpp')
-rw-r--r-- | sca-cpp/trunk/components/chat/chatter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-cpp/trunk/components/chat/chatter.cpp b/sca-cpp/trunk/components/chat/chatter.cpp index 5a6d4909df..95f2d40077 100644 --- a/sca-cpp/trunk/components/chat/chatter.cpp +++ b/sca-cpp/trunk/components/chat/chatter.cpp @@ -110,7 +110,7 @@ public: // Disconnect and shutdown the worker thread disconnect(const_cast<XMPPClient&>(xc)); - shutdown(const_cast<worker&>(w)); + cancel(const_cast<worker&>(w)); debug("chat::chatter::stopped"); return failable<value>(value(lambda<value(const list<value>&)>())); @@ -154,7 +154,7 @@ extern "C" { const tuscany::value apply(const tuscany::list<tuscany::value>& params) { const tuscany::value func(car(params)); - if (func == "start" || func == "restart") + if (func == "start") return tuscany::chat::start(cdr(params)); return tuscany::mkfailure<tuscany::value>(); } |