Browse files

Always start VM with defaults

Always use defaults. Defaults can be overriden using start/1.
  • Loading branch information...
1 parent 1e34627 commit 5acd5ef63aa991f39d5718f277bd7cc98ba97b40 @msantos committed Dec 29, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/evum.erl
View
4 src/evum.erl
@@ -82,7 +82,7 @@ defaults() -> ?DEFAULT_BOOT_OPTIONS.
start() ->
Pid = self(),
- start_link(Pid, defaults()).
+ start_link(Pid, []).
start(Options) ->
start_link(self(), Options).
start(Pid, Options) when is_pid(Pid), is_list(Options) ->
@@ -116,7 +116,7 @@ puts(Ref, Data) when is_list(Data); is_binary(Data) ->
gen_server:call(Ref, {send, Data}, infinity).
start_link(Pid, Options) ->
- {ok, Ref} = gen_server:start_link(?MODULE, [Pid, Options], []),
+ {ok, Ref} = gen_server:start_link(?MODULE, [Pid, Options ++ defaults()], []),
boot(Ref, Options),
{ok,Ref}.

0 comments on commit 5acd5ef

Please sign in to comment.