Skip to content

Commit

Permalink
dialog: set DLG_FLAG_EXPIRED flag when timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mikomarrache committed Apr 15, 2015
1 parent 216fc94 commit fa90ad3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/dialog/dlg_handlers.c
Expand Up @@ -1376,6 +1376,9 @@ void dlg_ontimeout(struct dlg_tl *tl)
dlg = ((struct dlg_cell*)((char *)(tl) -
(unsigned long)(&((struct dlg_cell*)0)->tl)));

/* mark dialog as expired */
dlg->dflags |= DLG_FLAG_EXPIRED;

if(dlg->state==DLG_STATE_CONFIRMED_NA
|| dlg->state==DLG_STATE_CONFIRMED)
{
Expand Down

0 comments on commit fa90ad3

Please sign in to comment.