Merge pull request #2093 from thomas-blank/fix-mqtt-connection-refused

Fix Bug in MQTT App: Refused Connections should not be pursued.
This commit is contained in:
George Oikonomou 2017-03-17 23:08:45 +00:00 committed by GitHub
commit 905356da13

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;