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