this.connected = false; if (e) { this.logger.error("AMQP10 connection error.", (this.connection && this.connection.error) || ""); errorCallback && errorCallback(e); }) .catch(e => { this.logger.error("AMQP10 connection error.", (this.connection && this.connection.error) || ""); this.logger.info("AMQP10 is disconnected."); this.connected = false;