avoid calling notify handler if terminated
This commit is contained in:
parent
8d3f5dd257
commit
1a346cbd6e
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue