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 | 2ac3c347669049fc092a20632477bfc31ba33b92 (patch) | |
| tree | 3676a4123c63cc4e35825a0197c1a668091e7da4 /cpp/examples/qmf-console/ping.cpp | |
| parent | 4a07dd7427a83cb0179abeafac7d5467650d291b (diff) | |
| download | qpid-python-2ac3c347669049fc092a20632477bfc31ba33b92.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/ping.cpp')
| -rw-r--r-- | cpp/examples/qmf-console/ping.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/examples/qmf-console/ping.cpp b/cpp/examples/qmf-console/ping.cpp index 405c15f1c4..fe537d48d2 100644 --- a/cpp/examples/qmf-console/ping.cpp +++ b/cpp/examples/qmf-console/ping.cpp @@ -55,6 +55,7 @@ int main_int(int /*argc*/, char** /*argv*/) // Add a broker connection to the session manager. // Broker* broker = sm.addBroker(connSettings); + broker->waitForStable(); uint32_t count = 5; // The number of echo requests we will send to the broker. Object::Vector list; // A container for holding objects retrieved from the broker. |
