Permalink
Browse files

The stop as well

  • Loading branch information...
1 parent 85cdf4b commit 11e310831da0fc459e785e0be5a5a176ba4bdf2a Gianfranco Alongi committed Mar 21, 2012
Showing with 5 additions and 1 deletion.
  1. +2 −1 Three/Solution/rebar.config
  2. +3 −0 Three/Solution/src/pubsub_pipes.erl
@@ -1 +1,2 @@
-{cover_enabled,true}.
+{cover_enabled,true}.
+{eunit_opts,[verbose]}.
@@ -39,6 +39,9 @@ get_pipes() ->
init([]) ->
{ok, #state{pipes = ets:new(pipes,[bag])}}.
+handle_call(stop,_From,State) ->
+ {stop,ok,State};
+
handle_call({create_pipe,PipeName}, _From, State) ->
ets:insert_new(State#state.pipes,{PipeName,[]}),
{reply, ok, State};

0 comments on commit 11e3108

Please sign in to comment.