diff --git a/src/hackney_client/hackney_manager.erl b/src/hackney_client/hackney_manager.erl index deaf239f..8141ed29 100644 --- a/src/hackney_client/hackney_manager.erl +++ b/src/hackney_client/hackney_manager.erl @@ -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()},