fix emqtt_packet:from_packet

This commit is contained in:
Ery Lee 2015-01-16 00:20:49 +08:00
parent b4528e46e7
commit efd1fbf4fe
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ shutdown(Error, #proto_state{peer_name = PeerName, client_id = ClientId, will_ms
ok.
willmsg(Packet) when is_record(Packet, mqtt_packet_connect) ->
emqtt_packet:from_packet(Packet).
emqtt_message:from_packet(Packet).
clientid(<<>>, #proto_state{peer_name = PeerName}) ->
<<"eMQTT/", (base64:encode(PeerName))/binary>>;