Remove redundant check, this is handled in send__pubrec.

This commit is contained in:
Roger A. Light 2021-05-21 14:18:27 +01:00
parent a01dcd68a5
commit 90e3b287de

View File

@ -365,11 +365,7 @@ process_bad_message:
rc = send__puback(context, msg->source_mid, reason_code, NULL);
break;
case 2:
if(context->protocol == mosq_p_mqtt5){
rc = send__pubrec(context, msg->source_mid, reason_code, NULL);
}else{
rc = send__pubrec(context, msg->source_mid, 0, NULL);
}
rc = send__pubrec(context, msg->source_mid, reason_code, NULL);
break;
}
db__msg_store_free(msg);