diff --git a/include/amqpcpp/address.h b/include/amqpcpp/address.h index 8732e49..bbbb6d0 100644 --- a/include/amqpcpp/address.h +++ b/include/amqpcpp/address.h @@ -333,8 +333,8 @@ public: // portnumber must match if (_port != that._port) return false; - // and finally the vhosts, they must match too - if (_vhost == that._vhost) return false; + // and the vhosts, they must match too + if (_vhost != that._vhost) return false; // and the options as well return _options == that._options;