Fix Bug in MQTT App: Refused Connections should not be pursued.

No means no.
This commit is contained in:
Thomas Blank 2017-01-27 15:22:59 +01:00
parent 8248f524f5
commit ed1b27e40b

View file

@ -751,6 +751,8 @@ handle_connack(struct mqtt_connection *conn)
call_event(conn,
MQTT_EVENT_CONNECTION_REFUSED_ERROR,
&conn->in_packet.payload[1]);
abort_connection(conn);
return;
}
conn->out_packet.qos_state = MQTT_QOS_STATE_GOT_ACK;