fix
This commit is contained in:
parent
f9690fc81f
commit
f088ae8795
@ -100,8 +100,8 @@ handle_info({connect_reply, Reply}, State = #state{transport_pid = TransportPid}
|
|||||||
efka_transport:auth_request(TransportPid, 5000),
|
efka_transport:auth_request(TransportPid, 5000),
|
||||||
{noreply, State#state{status = ?STATE_AUTH}};
|
{noreply, State#state{status = ?STATE_AUTH}};
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
lager:debug("[efka_agent] connect failed, error: ~p", [Reason]),
|
lager:debug("[efka_agent] connect failed, error: ~p, pid: ~p", [Reason, TransportPid]),
|
||||||
efka_transport:stop(TransportPid),
|
% efka_transport:stop(TransportPid),
|
||||||
{noreply, State#state{status = ?STATE_DENIED}}
|
{noreply, State#state{status = ?STATE_DENIED}}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -174,7 +174,8 @@ handle_info(Info, State = #state{}) ->
|
|||||||
%% with Reason. The return value is ignored.
|
%% with Reason. The return value is ignored.
|
||||||
-spec(terminate(Reason :: (normal | shutdown | {shutdown, term()} | term()),
|
-spec(terminate(Reason :: (normal | shutdown | {shutdown, term()} | term()),
|
||||||
State :: #state{}) -> term()).
|
State :: #state{}) -> term()).
|
||||||
terminate(_Reason, _State = #state{}) ->
|
terminate(Reason, _State = #state{}) ->
|
||||||
|
lager:debug("[efka_transport] terminate with reason: ~p", [Reason]),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
%% @private
|
%% @private
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user