... | ... |
@@ -234,8 +234,11 @@ static inline int wb_timer(urecord_t* _r) |
234 | 234 |
LOG(L_ERR, "wb_timer(): Error while deleting contact from database\n"); |
235 | 235 |
} |
236 | 236 |
} |
237 |
+ if (t->expires != 0) { |
|
238 |
+ _r->slot->d->expired++; |
|
239 |
+ } |
|
240 |
+ |
|
237 | 241 |
mem_delete_ucontact(_r, t); |
238 |
- _r->slot->d->expired++; |
|
239 | 242 |
} else { |
240 | 243 |
/* Determine the operation we have to do */ |
241 | 244 |
op = st_flush_ucontact(ptr); |