Skip to content

Commit

Permalink
Merge pull request erlyaws#155 from mdaguete/session_server_fixes
Browse files Browse the repository at this point in the history
yaws_session_server:print_sessions/0 not working due incorrect message
  • Loading branch information
Claes Wikstrom committed Jul 9, 2013
2 parents e6bb751 + 11b3b42 commit 8fdb1ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yaws_session_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ handle_call(stop, From, State) ->
%% {noreply, State, Timeout} |
%% {stop, Reason, State} (terminate/2 is called)
%%----------------------------------------------------------------------
handle_cast(print_session, #state{backend = Backend} = State) ->
Ss = Backend:list(Backend),
handle_cast(print_sessions, #state{backend = Backend} = State) ->
Ss = Backend:list(),
io:format("** ~p sessions active ~n~n", [length(Ss)]),
N = gnow(),
lists:foreach(fun(S) ->
Expand Down

0 comments on commit 8fdb1ec

Please sign in to comment.