aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-10-31 22:36:37 +0000
committerLoïc Hoguin <[email protected]>2017-10-31 22:36:37 +0000
commit774824cd0f37e5956e1dd8f903be990c3ce4666a (patch)
treeeb6967465b0abbf728d3e8d6be4c630e8bae34b8 /src
parentad9ab51648d16181960f4a4eeb27ea6948d35739 (diff)
downloadcowboy-774824cd0f37e5956e1dd8f903be990c3ce4666a.tar.gz
cowboy-774824cd0f37e5956e1dd8f903be990c3ce4666a.tar.bz2
cowboy-774824cd0f37e5956e1dd8f903be990c3ce4666a.zip
Fix another warning
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 7d19c05..281e815 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -908,9 +908,9 @@ commands(State0=#state{ref=Ref, parent=Parent, socket=Socket, transport=Transpor
[{switch_protocol, Headers, Protocol, InitialState}|_Tail]) ->
%% @todo This should be the last stream running otherwise we need to wait before switching.
%% @todo If there's streams opened after this one, fail instead of 101.
- State1 = cancel_timeout(State0),
+ State = cancel_timeout(State0),
%% Send a 101 response, then terminate the stream.
- State = #state{streams=Streams} = info(State1, StreamID, {inform, 101, Headers}),
+ #state{streams=Streams} = info(State, StreamID, {inform, 101, Headers}),
#stream{state=StreamState} = lists:keyfind(StreamID, #stream.id, Streams),
%% @todo We need to shutdown processes here first.
stream_call_terminate(StreamID, switch_protocol, StreamState),