Skip to content

Commit

Permalink
gen_server:handle_call should return {reply,...,State}
Browse files Browse the repository at this point in the history
this is probably a typo
  • Loading branch information
gdamjan committed Aug 22, 2015
1 parent 3be51df commit e594b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hackney_client/hackney_manager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ handle_call({stop_async_response, Ref, To}, _From, State) ->
[] -> {reply, {ok, Ref}, State};
[{Ref, {_Owner, nil, _Info}}] ->
%% there is no async request to handle, just return
{ok, Ref};
{reply, {ok, Ref}, State};
[{Ref, {Owner, Stream, Info}}] ->
%% tell to the stream to stop
Stream ! {Ref, stop_async, self()},
Expand Down

0 comments on commit e594b88

Please sign in to comment.