Properly stop the repo and revwalk servers

Return the 4-tuple when asked to stop instead of the 3-tuple so we do
indicate the stop was normal.
This commit is contained in:
Carlos Martín Nieto
2013-04-10 20:11:07 +02:00
parent d0034b1142
commit 353995a2da
4 changed files with 16 additions and 8 deletions

View File

@@ -116,7 +116,7 @@ handle_call({lookup_object, Oid}, _From, State = #state{handle=Handle}) ->
Reply = geef:object_lookup(Handle, Oid),
{reply, Reply, State};
handle_call(stop, _From, State) ->
{stop, normal, State};
{stop, normal, ok, State};
handle_call(revwalk, _From, State = #state{handle=Handle}) ->
Reply = handle_revwalk(Handle),
{reply, Reply, State};