Permalink
Browse files

gen_server callback stop/1 moved to API section.

stop/1 was erroneously left inside CALLBACKS section instead of put
inside PUBLIC API section of source file.
  • Loading branch information...
1 parent ca92950 commit 709c8b20d7e173c76eddb88a0c70b3e5b608fa3f @mbbx6spp committed Jan 31, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 finsrv.erl
View
@@ -33,6 +33,11 @@ start_link() ->
% gen_server:start_link(?MODULE, [], []). % for unnamed gen_server
gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
+%% @doc stops gen_server implementation process
+%% @spec stop() -> ok
+stop() ->
+ gen_server:cast(?MODULE, stop).
+
% TODO: add more public API here...
%%%.
@@ -60,10 +65,6 @@ code_change(_OldVsn, State, _Extra) ->
{ok, State}.
%% @private
-stop() ->
- gen_server:cast(?MODULE, stop).
-
-%% @private
terminate(normal, _State) ->
ok;
terminate(shutdown, _State) ->

0 comments on commit 709c8b2

Please sign in to comment.