Fix connack reason code when crash

This commit is contained in:
terry-xiaoyu 2019-09-20 22:30:16 +08:00
parent b29ceb9f6b
commit 0bd69ba059
1 changed files with 1 additions and 1 deletions

View File

@ -181,5 +181,5 @@ mqtt_frame_error(mqtt_frame_too_large) -> ?RC_PACKET_TOO_LARGE;
mqtt_frame_error(_) -> ?RC_MALFORMED_PACKET. mqtt_frame_error(_) -> ?RC_MALFORMED_PACKET.
formalized(connack, Code) when is_integer(Code) -> Code; formalized(connack, Code) when is_integer(Code) -> Code;
formalized(connack, Code) when is_integer(Code) -> formalized(connack, _Code) ->
?RC_SERVER_UNAVAILABLE. ?RC_SERVER_UNAVAILABLE.