X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Famqp.c;h=41390e9183863662aed3f66c83c2ad0d1a1603e9;hb=ed4841034121cb3b7a99d60ddfdd585b49f79426;hp=bdc62b3bf59f5e5080fee7068a32a47da48349ec;hpb=70160d8f57c9a767ae2ca14e31c8687ecbb10db3;p=collectd.git diff --git a/src/amqp.c b/src/amqp.c index bdc62b3b..41390e91 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -928,9 +928,9 @@ static int camqp_config_connection (oconfig_item_t *ci, /* {{{ */ status = cf_util_get_string (child, &conf->exchange_type); else if ((strcasecmp ("Queue", child->key) == 0) && !publish) status = cf_util_get_string (child, &conf->queue); - else if (strcasecmp ("QueueDurable", child->key) == 0) + else if ((strcasecmp ("QueueDurable", child->key) == 0) && !publish) status = cf_util_get_boolean (child, &conf->queue_durable); - else if (strcasecmp ("QueueAutoDelete", child->key) == 0) + else if ((strcasecmp ("QueueAutoDelete", child->key) == 0) && !publish) status = cf_util_get_boolean (child, &conf->queue_auto_delete); else if (strcasecmp ("RoutingKey", child->key) == 0) status = cf_util_get_string (child, &conf->routing_key);