diff options
| author | Gordon Sim <gsim@apache.org> | 2012-02-29 16:10:06 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2012-02-29 16:10:06 +0000 |
| commit | bbfdef9f3057b20ca41dd58125aca84cff8f6d13 (patch) | |
| tree | e71c17d39b69c1492e551f5602baaf587ccad733 /cpp/src/qpid/client/Connection.cpp | |
| parent | bed4d852f038052d33067508b01bdfab7172d036 (diff) | |
| download | qpid-python-bbfdef9f3057b20ca41dd58125aca84cff8f6d13.tar.gz | |
QPID-3832: Restore transport option for connection (as default for urls that don't specify one explicitly)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1295172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Connection.cpp')
| -rw-r--r-- | cpp/src/qpid/client/Connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp index 2882ef5d42..83a4a35b53 100644 --- a/cpp/src/qpid/client/Connection.cpp +++ b/cpp/src/qpid/client/Connection.cpp @@ -75,7 +75,7 @@ void Connection::open(const Url& url, const ConnectionSettings& settings) { i++; try { ConnectionSettings cs(settings); - cs.protocol = addr.protocol; + if (addr.protocol.size()) cs.protocol = addr.protocol; cs.host = addr.host; cs.port = addr.port; open(cs); |
