Skip to content

Commit

Permalink
usrloc: only execute funtion udomain_contact_expired_cb when db_mode …
Browse files Browse the repository at this point in the history
…is set as DB_ONLY
  • Loading branch information
Muhammad Zaka committed Oct 24, 2018
1 parent 8cf7baf commit ee0b15b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/usrloc/udomain.c
Expand Up @@ -911,6 +911,10 @@ int udomain_contact_expired_cb(db1_con_t* _c, udomain_t* _d)
urecord_t* r;
ucontact_t* c;

if (db_mode!=DB_ONLY) {
return 0;
}

columns[0] = &user_col;
columns[1] = &contact_col;
columns[2] = &expires_col;
Expand Down

0 comments on commit ee0b15b

Please sign in to comment.