From 3ca3552452862fa34847c2035143d4ccb4bf37f9 Mon Sep 17 00:00:00 2001 From: Ery Lee Date: Sun, 11 Jan 2015 23:29:50 +0800 Subject: [PATCH] fix {function_clause,[{emqtt_protocol,make_packet, [7,6] --- 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 b794bb9fe..e0eab9001 100644 --- a/apps/emqtt/src/emqtt_protocol.erl +++ b/apps/emqtt/src/emqtt_protocol.erl @@ -229,7 +229,7 @@ handle_packet(?DISCONNECT, #mqtt_packet{}, State=#proto_state{peer_name = PeerNa make_packet(Type) when Type >= ?CONNECT andalso Type =< ?DISCONNECT -> #mqtt_packet{ header = #mqtt_packet_header { type = Type } }. -make_packet(PubAck, PacketId) when PubAck >= ?PUBACK andalso PubAck =< ?PUBREC -> +make_packet(PubAck, PacketId) when PubAck >= ?PUBACK andalso PubAck =< ?PUBCOMP -> #mqtt_packet { header = #mqtt_packet_header { type = PubAck}, variable = #mqtt_packet_puback { packet_id = PacketId}}.