summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2012-06-05 16:52:14 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2012-06-05 16:52:14 +0000
commit419c6a3f0ad577d92462c3cd2c47209e097c0f8c (patch)
tree55d3dd8cdd77f0c5c98c872f55ff27738408b0de /qpid/cpp/src
parent555a7eb522847d7dcc243d8a14925d958848aef4 (diff)
downloadqpid-python-419c6a3f0ad577d92462c3cd2c47209e097c0f8c.tar.gz
QPID-4041: move check for transport after setting value.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1346462 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/broker/Broker.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/qpid/cpp/src/qpid/broker/Broker.cpp b/qpid/cpp/src/qpid/broker/Broker.cpp
index b550156c00..89c9c3fb37 100644
--- a/qpid/cpp/src/qpid/broker/Broker.cpp
+++ b/qpid/cpp/src/qpid/broker/Broker.cpp
@@ -747,11 +747,6 @@ void Broker::createObject(const std::string& type, const std::string& name,
bool durable = false;
std::string authMech, username, password;
- if (!getProtocolFactory(transport)) {
- QPID_LOG(error, "Transport '" << transport << "' not supported.");
- throw UnsupportedTransport(transport);
- }
-
for (Variant::Map::const_iterator i = properties.begin(); i != properties.end(); ++i) {
if (i->first == HOST) host = i->second.asString();
else if (i->first == PORT) port = i->second.asUint16();
@@ -765,6 +760,11 @@ void Broker::createObject(const std::string& type, const std::string& name,
}
}
+ if (!getProtocolFactory(transport)) {
+ QPID_LOG(error, "Transport '" << transport << "' not supported.");
+ throw UnsupportedTransport(transport);
+ }
+
std::pair<boost::shared_ptr<Link>, bool> rc;
rc = links.declare(name, host, port, transport, durable, authMech, username, password);
if (!rc.first) {