summaryrefslogtreecommitdiff
path: root/cpp/examples/qmf-console/console.cpp
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2010-06-03 20:23:30 +0000
committerTed Ross <tross@apache.org>2010-06-03 20:23:30 +0000
commit1407ed486f178e408e804c844d833ebdf62aa4e4 (patch)
tree3676a4123c63cc4e35825a0197c1a668091e7da4 /cpp/examples/qmf-console/console.cpp
parenta5bf1aec82703d272f5e63a1fd9da6219a1ea4aa (diff)
downloadqpid-python-1407ed486f178e408e804c844d833ebdf62aa4e4.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/qpid@951141 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/qmf-console/console.cpp')
-rw-r--r--cpp/examples/qmf-console/console.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/examples/qmf-console/console.cpp b/cpp/examples/qmf-console/console.cpp
index 5700d5556f..b5375b673f 100644
--- a/cpp/examples/qmf-console/console.cpp
+++ b/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;