Skip to content

Commit

Permalink
use transport socket to close it
Browse files Browse the repository at this point in the history
forgot that while fixing #223
  • Loading branch information
benoitc committed Aug 21, 2015
1 parent 571f5ad commit 1b9ffdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hackney_client/hackney_stream.erl
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ async_recv(Parent, Owner, Ref,
proc_lib:hibernate(?MODULE, async_recv, [Parent, Owner, Ref,
Client, Buffer]);
{Ref, close} ->
Transport:close(Sock);
Transport:close(TSock);
{Ref, stop_async, From} ->
hackney_manager:store_state(Client#client{async=false}),
Transport:setopts(TSock, [{active, false}]),
Expand Down

0 comments on commit 1b9ffdb

Please sign in to comment.