Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Fix controlling_process fun in dispcount handler
Browse files Browse the repository at this point in the history
  • Loading branch information
loucash committed Nov 17, 2014
1 parent 4e45c3e commit dba4e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dlhttpc_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ checkout(_From, State = #state{given=true}) ->
{error, busy, State};
checkout(From, State = #state{resource={ok, Socket}, ssl=Ssl}) ->
dlhttpc_sock:setopts(Socket, [{active,false}], Ssl),
case gen_tcp:controlling_process(Socket, From) of
case dlhttpc_sock:controlling_process(Socket, From, Ssl) of
ok ->
{ok, {self(), Socket}, State#state{given=true}};
{error, badarg} -> % caller died
Expand Down

0 comments on commit dba4e5e

Please sign in to comment.