From ddc87f339f441fe5b62455606cf6ed6fb8dbc461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 26 Sep 2019 13:40:26 +0200 Subject: Remove UnprocessedStreams from the gun_down message --- src/gun_http.erl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gun_http.erl') diff --git a/src/gun_http.erl b/src/gun_http.erl index 80c83bb..a220d75 100644 --- a/src/gun_http.erl +++ b/src/gun_http.erl @@ -701,14 +701,12 @@ stream_info(#http_state{streams=Streams}, StreamRef) -> {ok, undefined} end. -%% HTTP does not provide any way to figure out what streams are unprocessed. down(#http_state{streams=Streams}) -> - KilledStreams = [case Ref of + [case Ref of {connect, Ref2, _} -> Ref2; #websocket{ref=Ref2} -> Ref2; _ -> Ref - end || #stream{ref=Ref} <- Streams], - {KilledStreams, []}. + end || #stream{ref=Ref} <- Streams]. error_stream_closed(State, StreamRef, ReplyTo) -> ReplyTo ! {gun_error, self(), StreamRef, {badstate, -- cgit v1.2.3