Browse Source

send connack with State1

Ery Lee 11 years ago
parent
commit
5d6a70afb2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/emqtt/src/emqtt_protocol.erl

+ 1 - 1
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 {