added redundant terminated check in tmr_handlers
This commit is contained in:
parent
adca48e7ee
commit
338ae8be9e
2 changed files with 4 additions and 1 deletions
|
@ -99,6 +99,9 @@ static void tmr_handler(void *arg)
|
|||
{
|
||||
struct sipnot *not = arg;
|
||||
|
||||
if (not->terminated)
|
||||
return;
|
||||
|
||||
re_printf("subscription expired\n");
|
||||
|
||||
sipnot_terminate(not, ETIMEDOUT, NULL, SIPEVENT_TIMEOUT);
|
||||
|
|
|
@ -99,7 +99,7 @@ static void tmr_handler(void *arg)
|
|||
struct sipsub *sub = arg;
|
||||
int err;
|
||||
|
||||
if (sub->req)
|
||||
if (sub->req || sub->terminated)
|
||||
return;
|
||||
|
||||
err = request(sub, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue