fixed Address constructor

This commit is contained in:
Emiel Bruijntjes 2018-03-10 10:32:48 +01:00
parent d81565fe6a
commit 23cae9de84
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public:
if (strncmp(data, "amqps://", 8) == 0) _secure = true;
// otherwise protocol must be amqp://
else if (!strncmp(data, "amqp://", 7) != 0) throw std::runtime_error("AMQP address should start with \"amqp://\" or \"amqps://\"");
else if (strncmp(data, "amqp://", 7) != 0) throw std::runtime_error("AMQP address should start with \"amqp://\" or \"amqps://\"");
// assign default port (we may overwrite it later)
_port = defaultport();