fix(exproto): fix the bad return type for auth

This commit is contained in:
JianBo He 2021-01-21 10:05:50 +08:00 committed by JianBo He
parent f96c4f36d2
commit 3322bb60c3
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ handle_call(close, Channel) ->
handle_call({auth, ClientInfo, _Password}, Channel = #channel{conn_state = connected}) ->
?LOG(warning, "Duplicated authorized command, dropped ~p", [ClientInfo]),
{ok, {error, ?RESP_PERMISSION_DENY, <<"Duplicated authenticate command">>}, Channel};
{reply, {error, ?RESP_PERMISSION_DENY, <<"Duplicated authenticate command">>}, Channel};
handle_call({auth, ClientInfo0, Password},
Channel = #channel{conninfo = ConnInfo,
clientinfo = ClientInfo}) ->