fix {function_clause,[{emqtt_protocol,make_packet,

[7,6]
This commit is contained in:
Ery Lee 2015-01-11 23:29:50 +08:00
parent 68eb225981
commit 3ca3552452
1 changed files with 1 additions and 1 deletions

View File

@ -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}}.