Permalink
Browse files

Remove client monitor if op start fails

  • Loading branch information...
1 parent ef60479 commit feedcfa6a6198a3f91679ce8b519dbab54fb6ca9 @andrewtj andrewtj committed Jul 1, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/dnssd_server.erl
View
1 src/dnssd_server.erl
@@ -196,6 +196,7 @@ handle_call({start, Op}, {ClientPid, _Tag} = Client,
NewState = State#state{subs = NewSubs, ops = NewOps},
{reply, Reply, NewState};
{error, _Error} = Reply ->
+ true = erlang:demonitor(MonRef),
{reply, Reply, State}
end
end;

0 comments on commit feedcfa

Please sign in to comment.