Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Jarek Świerczyński <[email protected]>
  • Loading branch information
swiergot committed Jul 22, 2023
1 parent 5dceeb9 commit 55c36b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/persist_write.c
Expand Up @@ -167,11 +167,11 @@ static int persist__client_save(FILE *db_fptr)
memset(&chunk, 0, sizeof(struct P_client));

HASH_ITER(hh_id, db.contexts_by_id, context, ctxt_tmp){
if(context && (context->clean_start == false
if(context && (context->clean_start == false)
#ifdef WITH_BRIDGE
|| (context->bridge && context->bridge->clean_start_local == false)
&& (context->bridge == NULL)
#endif
)){
){
chunk.F.session_expiry_time = context->session_expiry_time;
if(context->session_expiry_interval != 0 && context->session_expiry_interval != UINT32_MAX && context->session_expiry_time == 0){
chunk.F.session_expiry_time = context->session_expiry_interval + db.now_real_s;
Expand Down

0 comments on commit 55c36b2

Please sign in to comment.