aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_ws.erl
diff options
context:
space:
mode:
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} ->