Commit dd036b23 authored by Pekka Pessi's avatar Pekka Pessi

nua_notifier.c: fix problem handing expiration time if NOTIFY is sent before...

nua_notifier.c: fix problem handing expiration time if NOTIFY is sent before SUBSCRIBE has been responded

darcs-hash:20080104215320-65a35-4c39dcbb9163c5348f8231080eacc895b276871a.gz
parent b220913c
......@@ -498,10 +498,18 @@ static int nua_notify_client_init(nua_client_request_t *cr,
else if (nu->nu_requested >= now + expires)
nu->nu_expires = nu->nu_requested = now + expires;
}
else {
if (nu->nu_requested >= nu->nu_expires)
nu->nu_expires = nu->nu_requested;
}
}
else {
enum nua_substate substate = nu->nu_substate;
if (nu->nu_requested >= nu->nu_expires)
nu->nu_expires = nu->nu_requested;
if (nu->nu_expires > now) {
tagi_t const *t = tl_find_last(tags, nutag_substate);
if (t)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment