Skip to content

Commit d6eb869

Browse files
committed
don't unlink twice the stream
1 parent c37403c commit d6eb869

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/hackney_manager.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,7 @@ clean_requests([Ref | Rest], Pid, Reason, PoolHandler, State) ->
518518
%% continue
519519
clean_requests(Rest, Pid, Reason, PoolHandler, State);
520520
[{Ref, {Pid, Stream, #request_info{pool=Pool}=Info}}] ->
521-
%% unlink the stream
522-
unlink(Stream),
521+
%% erase the stream
523522
Pids2 = dict:erase(Stream, State#mstate.pids),
524523
%% terminate the async stream
525524
ok = terminate_async_response(Stream),

0 commit comments

Comments
 (0)