diff options
author | Alan Conway <aconway@apache.org> | 2007-08-20 13:27:15 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-08-20 13:27:15 +0000 |
commit | 845c9eb603de973aaccb57b3c7ee0ff997b976c7 (patch) | |
tree | c637db3da15af9d84d1c8d44f25ab17b02117f6a /cpp/src | |
parent | ab397dc2987d02c20e6c08a7d8308804f4778712 (diff) | |
download | qpid-python-845c9eb603de973aaccb57b3c7ee0ff997b976c7.tar.gz |
If neither --listen nor --publish is specified, do both.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@567696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/tests/perftest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/tests/perftest.cpp b/cpp/src/tests/perftest.cpp index 7c0941bf68..38882f19c3 100644 --- a/cpp/src/tests/perftest.cpp +++ b/cpp/src/tests/perftest.cpp @@ -64,6 +64,8 @@ struct PublishThread : public Runnable { Thread thread; void run(); }; int main(int argc, char** argv) { try { opts.parse(argc, argv); + if (!opts.listen && !opts.publish) + opts.listen = opts.publish = true; ListenThread listen; PublishThread publish; if (opts.listen) |