diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_websocket.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cowboy_websocket.erl b/src/cowboy_websocket.erl index 9bd6df6..fa74223 100644 --- a/src/cowboy_websocket.erl +++ b/src/cowboy_websocket.erl @@ -536,7 +536,7 @@ handler_call(State=#state{handler=Handler, handler_opts=HandlerOpts}, Req, ok -> NextState(State, Req2, HandlerState2, RemainingData); shutdown -> - handler_terminate(State, Req2, HandlerState, + handler_terminate(State, Req2, HandlerState2, {normal, shutdown}); {error, _} = Error -> handler_terminate(State, Req2, HandlerState2, Error) @@ -548,7 +548,7 @@ handler_call(State=#state{handler=Handler, handler_opts=HandlerOpts}, Req, NextState(State#state{hibernate=true}, Req2, HandlerState2, RemainingData); shutdown -> - handler_terminate(State, Req2, HandlerState, + handler_terminate(State, Req2, HandlerState2, {normal, shutdown}); {error, _} = Error -> handler_terminate(State, Req2, HandlerState2, Error) @@ -559,7 +559,7 @@ handler_call(State=#state{handler=Handler, handler_opts=HandlerOpts}, Req, ok -> NextState(State, Req2, HandlerState2, RemainingData); shutdown -> - handler_terminate(State, Req2, HandlerState, + handler_terminate(State, Req2, HandlerState2, {normal, shutdown}); {error, _} = Error -> handler_terminate(State, Req2, HandlerState2, Error) @@ -571,7 +571,7 @@ handler_call(State=#state{handler=Handler, handler_opts=HandlerOpts}, Req, NextState(State#state{hibernate=true}, Req2, HandlerState2, RemainingData); shutdown -> - handler_terminate(State, Req2, HandlerState, + handler_terminate(State, Req2, HandlerState2, {normal, shutdown}); {error, _} = Error -> handler_terminate(State, Req2, HandlerState2, Error) |