added redundant terminated check in tmr_handlers

This commit is contained in:
Richard Aas 2011-12-16 10:43:50 +00:00
parent adca48e7ee
commit 338ae8be9e
2 changed files with 4 additions and 1 deletions

View file

@ -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);

View file

@ -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);