Module: sip-router
Branch: master
Commit: b31c53abf1c3bafafb59d3fa6456135f1da6e6c9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b31c53a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jul 30 23:26:35 2010 +0200
presence(k): set properly db updated flag
- patch by Marius-Ovidiu Bucur
---
modules_k/presence/hash.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/presence/hash.c b/modules_k/presence/hash.c
index 874fe03..bc31b87 100644
--- a/modules_k/presence/hash.c
+++ b/modules_k/presence/hash.c
@@ -261,7 +261,7 @@ int insert_shtable(shtable_t htable,unsigned int hash_code, subs_t*
subs)
}
new_rec->expires+= (int)time(NULL);
- if(fallback2db==0)
+ if(fallback2db!=0)
new_rec->db_flag= INSERTDB_FLAG;
else
new_rec->db_flag= NO_UPDATEDB_FLAG;