send connack with State1

This commit is contained in:
Ery Lee 2015-01-11 00:26:58 +08:00
parent a46b0f6a75
commit 5d6a70afb2
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ handle_packet(?CONNECT, Packet = #mqtt_packet {
end,
send_packet( #mqtt_packet {
header = #mqtt_packet_header { type = ?CONNACK },
variable = #mqtt_packet_connack{ return_code = ReturnCode }}, State ),
variable = #mqtt_packet_connack{ return_code = ReturnCode }}, State1 ),
{ok, State1};
handle_packet(?PUBLISH, Packet = #mqtt_packet {