[457162] Fix mosquitto_sub not honouring --qos.

Thanks to Christoph Krey.

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=457162
This commit is contained in:
Roger A. Light 2015-01-09 21:02:16 +00:00
parent cfe1156eb7
commit b6a0b01e1e
2 changed files with 1 additions and 2 deletions

View File

@ -73,7 +73,6 @@ struct mosq_config {
bool clean_session; /* sub */
char **topics; /* sub */
int topic_count; /* sub */
int topic_qos; /* sub */
bool no_retain; /* sub */
char **filter_outs; /* sub */
int filter_out_count; /* sub */

View File

@ -89,7 +89,7 @@ void my_connect_callback(struct mosquitto *mosq, void *obj, int result)
if(!result){
for(i=0; i<cfg->topic_count; i++){
mosquitto_subscribe(mosq, NULL, cfg->topics[i], cfg->topic_qos);
mosquitto_subscribe(mosq, NULL, cfg->topics[i], cfg->qos);
}
}else{
if(result && !cfg->quiet){