aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_ws.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-04-10 13:04:05 +0300
committerLoïc Hoguin <[email protected]>2015-04-10 13:04:05 +0300
commitba90cb2475c45b5348c4ff7f4f77729f04a98114 (patch)
tree21cdb358c91d2c612e6b0ddc9e870fc77fa254cc /src/gun_ws.erl
parent6676a982ff18d6a6b346f608e7ce313cfccc873e (diff)
downloadgun-ba90cb2475c45b5348c4ff7f4f77729f04a98114.tar.gz
gun-ba90cb2475c45b5348c4ff7f4f77729f04a98114.tar.bz2
gun-ba90cb2475c45b5348c4ff7f4f77729f04a98114.zip
Make Dialyzer happy
Diffstat (limited to 'src/gun_ws.erl')
-rw-r--r--src/gun_ws.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gun_ws.erl b/src/gun_ws.erl
index 246cc57..9e35fa6 100644
--- a/src/gun_ws.erl
+++ b/src/gun_ws.erl
@@ -112,8 +112,9 @@ dispatch(Rest, State=#ws_state{owner=Owner, frag_state=FragState, frag_buffer=So
close(Reason, State) ->
case Reason of
- Normal when Normal =:= stop; Normal =:= timeout ->
- send({close, 1000, <<>>}, State);
+%% @todo We need to send a close frame from gun:ws_loop on close.
+% Normal when Normal =:= stop; Normal =:= timeout ->
+% send({close, 1000, <<>>}, State);
{error, badframe} ->
send({close, 1002, <<>>}, State);
{error, badencoding} ->