From: <cpr...@us...> - 2003-03-23 17:06:52
|
Update of /cvsroot/jungerl/jungerl/lib/ce/src In directory sc8-pr-cvs1:/tmp/cvs-serv23430/src Modified Files: ce_goat.erl Log Message: Minor fix to ce_goat.erl Index: ce_goat.erl =================================================================== RCS file: /cvsroot/jungerl/jungerl/lib/ce/src/ce_goat.erl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ce_goat.erl 23 Mar 2003 17:03:24 -0000 1.2 +++ ce_goat.erl 23 Mar 2003 17:06:49 -0000 1.3 @@ -114,11 +114,8 @@ %% @spec new(module(), state()) -> goat_id() %% @equiv new(module(), state(), infinity) -new(Handler, State) when is_atom(Handler) -> - GoatId = new_id(), - Goat = #goat{ id = GoatId, handler = Handler, state = State }, - ets:insert(?MODULE, Goat), - GoatId. +new(Handler, State) -> + new(Handler, State, infinity). %% @spec new(module(), state(), timeout()) -> goat_id() %% module() = atom() |