diff options
author | Gordon Sim <gsim@apache.org> | 2008-11-06 10:47:57 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-11-06 10:47:57 +0000 |
commit | 92914dcf983f5328a19648950ab8d2c42ca77925 (patch) | |
tree | 179a813bc70cfdf6ffb7affd4d5cdee5c472a2f9 /cpp/src/tests/ClientSessionTest.cpp | |
parent | 3cb32fb199ccf271da1c08f355940c2550d48464 (diff) | |
download | qpid-python-92914dcf983f5328a19648950ab8d2c42ca77925.tar.gz |
SubscriptionManager and Dispatcher were missing wait() methods meaning that if start was called there was no way to join with the dispatch thread and shutdown cleanly. Fixed by adding that method.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@711838 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/ClientSessionTest.cpp')
-rw-r--r-- | cpp/src/tests/ClientSessionTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/ClientSessionTest.cpp b/cpp/src/tests/ClientSessionTest.cpp index cca16bd9f8..43c12ddf5c 100644 --- a/cpp/src/tests/ClientSessionTest.cpp +++ b/cpp/src/tests/ClientSessionTest.cpp @@ -306,7 +306,7 @@ QPID_AUTO_TEST_CASE(testRelease) { } fix.subs.setAutoStop(false); - sys::Thread runner(fix.subs);//start dispatcher thread + fix.subs.start(); SubscriptionSettings settings; settings.autoAck = 0; @@ -330,7 +330,7 @@ QPID_AUTO_TEST_CASE(testRelease) { } fix.subs.stop(); - runner.join(); + fix.subs.wait(); fix.session.close(); } |