Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

Commit

Permalink
Merge branch 'shutdown' of git://github.com/lpgauth/bullet
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed Jun 3, 2014
2 parents 8fd69aa + c2b8801 commit 2d64d09
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/bullet_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ websocket_handle({text, Data}, Req,
{ok, Req2, State#state{handler_state=HandlerState2}, hibernate};
{reply, Reply, Req2, HandlerState2} ->
{reply, {text, Reply}, Req2,
State#state{handler_state=HandlerState2}, hibernate}
State#state{handler_state=HandlerState2}, hibernate};
{shutdown, Req2, HandlerState2} ->
{shutdown, Req2, State#state{handler_state=HandlerState2}}
end;
websocket_handle(_Frame, Req, State) ->
{ok, Req, State, hibernate}.
Expand All @@ -156,7 +158,9 @@ websocket_info(Info, Req, State=#state{
{ok, Req2, State#state{handler_state=HandlerState2}, hibernate};
{reply, Reply, Req2, HandlerState2} ->
{reply, {text, Reply}, Req2,
State#state{handler_state=HandlerState2}, hibernate}
State#state{handler_state=HandlerState2}, hibernate};
{shutdown, Req2, HandlerState2} ->
{shutdown, Req2, State#state{handler_state=HandlerState2}}
end.

websocket_terminate(_Reason, Req,
Expand Down

0 comments on commit 2d64d09

Please sign in to comment.