avoid calling notify handler if terminated

This commit is contained in:
Richard Aas 2011-12-16 13:56:03 +00:00
parent 8d3f5dd257
commit 1a346cbd6e

View file

@ -217,6 +217,9 @@ static void notify_handler(struct sipevent_sock *sock,
break;
}
if (sub->terminated)
return;
mem_ref(sub);
sub->notifyh(msg, sub->arg);
nrefs = mem_nrefs(sub);