Permalink
Browse files

Fix for fetching all pages of undefined session.

  • Loading branch information...
1 parent 0eb0915 commit 43ba19e0b0193ab19bec37e5bcaccbf2812a8c09 @mworrell mworrell committed Dec 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/support/z_session.erl
@@ -197,6 +197,8 @@ get_attach_state(Context) ->
%% @doc Get app page pid()'s that are attached to the session
+get_pages(undefined) ->
+ [];
get_pages(Pid) when is_pid(Pid) ->
gen_server:call(Pid, get_pages);
get_pages(#context{} = Context) ->

0 comments on commit 43ba19e

Please sign in to comment.