Skip to content

Commit 08e2531

Browse files
committed
Bugfix revproxy
1 parent eedaca5 commit 08e2531

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/yaws_stats.erl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,10 @@ code_change(_OldVsn, State, _Extra) ->
155155
%%% Internal functions
156156
%%--------------------------------------------------------------------
157157
get_stats() ->
158-
(erlang:get(sc))#sconf.stats.
158+
SC = erlang:get(sc),
159+
case SC of
160+
undefined ->
161+
undefined;
162+
SC ->
163+
SC#sconf.stats
164+
end.

0 commit comments

Comments
 (0)