Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove client monitor if op start fails

  • Loading branch information...
commit feedcfa6a6198a3f91679ce8b519dbab54fb6ca9 1 parent ef60479
@andrewtj andrewtj authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.