summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2007-07-06 13:11:55 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2007-07-06 13:11:55 +0000
commit2dd8ce9e52f024e79bf51dd71956552294448cea (patch)
tree2d53a9e84d2df5a9ba2b7cc9fff60a145d6e87d2 /qpid/cpp/examples
parenta95356e17d920219f933343d54c8644d69dfe077 (diff)
downloadqpid-python-2dd8ce9e52f024e79bf51dd71956552294448cea.tar.gz
- added sleep to waiting thread.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@553873 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples')
-rw-r--r--qpid/cpp/examples/topic_listener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/examples/topic_listener.cpp b/qpid/cpp/examples/topic_listener.cpp
index a5de89a736..799d564aa2 100644
--- a/qpid/cpp/examples/topic_listener.cpp
+++ b/qpid/cpp/examples/topic_listener.cpp
@@ -80,7 +80,7 @@ int main() {
channel.start();
while (!done)
- ;
+ sleep(1000);
//-----------------------------------------------------------------------------
channel.close();