From 5d6a70afb2feff677b09a54c508e5a6d8cea6711 Mon Sep 17 00:00:00 2001 From: Ery Lee Date: Sun, 11 Jan 2015 00:26:58 +0800 Subject: [PATCH] send connack with State1 --- apps/emqtt/src/emqtt_protocol.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqtt/src/emqtt_protocol.erl b/apps/emqtt/src/emqtt_protocol.erl index 432fc1bc4..6d512438a 100644 --- a/apps/emqtt/src/emqtt_protocol.erl +++ b/apps/emqtt/src/emqtt_protocol.erl @@ -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 {