|
|
@ -375,12 +375,12 @@ int main(int argc, char *argv[])
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
HASH_ITER(hh_id, int_db.contexts_by_id, ctxt, ctxt_tmp){
|
|
|
|
HASH_ITER(hh_id, int_db.contexts_by_id, ctxt, ctxt_tmp){
|
|
|
|
mqtt3_context_send_will(&int_db, ctxt);
|
|
|
|
context__send_will(&int_db, ctxt);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef WITH_PERSISTENCE
|
|
|
|
#ifdef WITH_PERSISTENCE
|
|
|
|
if(config.persistence){
|
|
|
|
if(config.persistence){
|
|
|
|
mqtt3_db_backup(&int_db, true);
|
|
|
|
persist__backup(&int_db, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|