Remove redundant check, this is handled in send__pubrec.

pull/2215/head
Roger A. Light 4 years ago
parent a01dcd68a5
commit 90e3b287de

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

Loading…
Cancel
Save