diff options
author | Ted Ross <tross@apache.org> | 2010-06-03 20:23:30 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2010-06-03 20:23:30 +0000 |
commit | 095fb80c67258ab00a2654bdd4a094f4d37ed4b8 (patch) | |
tree | 3644e74d8df8f20de5f0a02b45db310e04a66777 /qpid/cpp/examples/qmf-console/console.cpp | |
parent | 0fce2485ea635c86bdf86b41ea9187ea50fe767d (diff) | |
download | qpid-python-095fb80c67258ab00a2654bdd4a094f4d37ed4b8.tar.gz |
QPID-2644 - Console examples sometimes fail due to not waiting for the broker connection to complete
Moved 'Broker::waitForStable' from private to public, used this function in the examples to
hold off until the broker is fully connected.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@951141 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/qmf-console/console.cpp')
-rw-r--r-- | qpid/cpp/examples/qmf-console/console.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/examples/qmf-console/console.cpp b/qpid/cpp/examples/qmf-console/console.cpp index 5700d5556f..b5375b673f 100644 --- a/qpid/cpp/examples/qmf-console/console.cpp +++ b/qpid/cpp/examples/qmf-console/console.cpp @@ -81,6 +81,7 @@ int main_int(int /*argc*/, char** /*argv*/) Broker* broker; broker = sm.addBroker(settings); + broker->waitForStable(); cout << "Package List:" << endl; vector<string> packages; |