Skip to content

Commit

Permalink
Should use close, not reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
lpgauth committed Mar 18, 2017
1 parent 58d401a commit 02e4290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shackle_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ handle_msg(?MSG_CONNECT, #state {
shackle_utils:warning_msg(PoolName,
"setup error: ~p", [Reason]),
Protocol:close(Socket),
reconnect(State, ClientState3)
close(State, ClientState3)
end;
{error, Reason} ->
shackle_utils:warning_msg(PoolName,
Expand Down Expand Up @@ -236,7 +236,7 @@ handle_msg_data(Data, #state {
shackle_utils:warning_msg(PoolName,
"handle_data error: ~p", [Reason]),
Protocol:close(Socket),
reconnect(State, ClientState2)
close(State, ClientState2)
end.

loop(#state {parent = Parent} = State, ClientState) ->
Expand Down

0 comments on commit 02e4290

Please sign in to comment.