fix
This commit is contained in:
parent
2166510989
commit
8f8e813a8c
@ -120,12 +120,11 @@ handle_cast({auth_request, ReceiverPid, Ref, Timeout}, State = #state{socket = S
|
||||
%% 需要等待auth返回的结果
|
||||
receive
|
||||
{ssl, Socket, <<?PACKET_RESPONSE, PacketId:32, ?METHOD_AUTH, ReplyBin/binary>>} ->
|
||||
lager:debug("call me here auth reply"),
|
||||
ReceiverPid ! {auth_reply, Ref, {ok, message_pb:decode_msg(ReplyBin, auth_reply)}},
|
||||
{noreply, State#state{packet_id = PacketId + 1}}
|
||||
after Timeout ->
|
||||
ReceiverPid ! {auth_reply, Ref, {error, timeout}},
|
||||
{noreply, State}
|
||||
{stop, normal, State}
|
||||
end;
|
||||
|
||||
handle_cast({send, Method, Packet}, State = #state{socket = Socket}) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user