aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gun_spdy.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_spdy.erl b/src/gun_spdy.erl
index db91852..48eabc5 100644
--- a/src/gun_spdy.erl
+++ b/src/gun_spdy.erl
@@ -129,8 +129,8 @@ handle_frame(Rest, State=#spdy_state{owner=Owner,
handle_frame(Rest, State=#spdy_state{owner=Owner},
{rst_stream, StreamID, Status}) ->
case get_stream_by_id(StreamID, State) of
- #stream{} ->
- Owner ! {gun_error, self(), StreamID, Status},
+ #stream{ref=StreamRef} ->
+ Owner ! {gun_error, self(), StreamRef, Status},
handle_loop(Rest, delete_stream(StreamID, State));
false ->
handle_loop(Rest, State)