Skip to content

Commit

Permalink
fix: typo in v3 reason code
Browse files Browse the repository at this point in the history
  • Loading branch information
zmstone committed Dec 4, 2024
1 parent c98ad4c commit 2a2949f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.13.6

- Fix a typo in MQTT v3 reason code.

# 1.13.5

- Avoid OTP crash reports by wrapping exit reason in the format `{shutdown,Reason}`.
Expand Down
2 changes: 1 addition & 1 deletion src/emqtt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2232,7 +2232,7 @@ reason_code_name(I, Ver) when Ver >= ?MQTT_PROTO_V5 ->
reason_code_name(0, _Ver) -> connection_accepted;
reason_code_name(1, _Ver) -> unacceptable_protocol_version;
reason_code_name(2, _Ver) -> client_identifier_not_valid;
reason_code_name(3, _Ver) -> server_unavaliable;
reason_code_name(3, _Ver) -> server_unavailable;
reason_code_name(4, _Ver) -> malformed_username_or_password;
reason_code_name(5, _Ver) -> unauthorized_client;
reason_code_name(_, _Ver) -> unknown_error.
Expand Down

0 comments on commit 2a2949f

Please sign in to comment.