Skip to content

Commit

Permalink
ftp: Correct state update
Browse files Browse the repository at this point in the history
  • Loading branch information
IngelaAndin committed Aug 7, 2024
1 parent d5e7e1f commit fe6da35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ftp/src/ftp_internal.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1135,9 +1135,9 @@ handle_info({Cls, Socket}, #state{dsock = {Trpt,Socket}, caller = recv_bin,
data = Data} = State0)
when {Cls,Trpt}=={tcp_closed,tcp} ; {Cls,Trpt}=={ssl_closed,ssl} ->
?DBG("Data channel close",[]),
State = activate_ctrl_connection(State0),
{noreply, State#state{dsock = undefined, data = <<>>,
caller = {recv_bin, Data}}};
State = activate_ctrl_connection(State0#state{dsock = undefined, data = <<>>,
caller = {recv_bin, Data}}),
{noreply, State};

handle_info({Cls, Socket}, #state{dsock = {Trpt,Socket}, data = Data,
caller = {handle_dir_result, Dir}}
Expand Down

0 comments on commit fe6da35

Please sign in to comment.