Skip to content

Commit

Permalink
Don't write bridge connections to the persistent database. Closes ecl…
Browse files Browse the repository at this point in the history
…ipse#2634.

Signed-off-by: Jarek Świerczyński <[email protected]>
  • Loading branch information
swiergot committed Jul 22, 2023
1 parent 269756a commit f6ee39b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/persist_write.c
Expand Up @@ -169,11 +169,9 @@ static int persist__client_save(FILE *db_fptr)
HASH_ITER(hh_id, db.contexts_by_id, context, ctxt_tmp){
if(context &&
#ifdef WITH_BRIDGE
((!context->bridge && context->clean_start == false)
|| (context->bridge && context->bridge->clean_start_local == false))
#else
context->clean_start == false
context->bridge == NULL &&
#endif
context->clean_start == false
){
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){
Expand Down

0 comments on commit f6ee39b

Please sign in to comment.