settings: cleanup left over temporary files for timestamps/seen-bssids

This commit is contained in:
Thomas Haller 2021-06-25 10:14:13 +02:00
parent 3c0f1eb0fd
commit 34c663ca1a
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -3713,6 +3713,10 @@ _kf_db_to_file(NMSettings *self, gboolean is_timestamps, gboolean force_write)
* add/remove of an connection will lead to a direct update. */
*p_kf_db_pruned = TRUE;
nm_key_file_db_prune(kf_db, _kf_db_prune_predicate, self);
/* once we also go over the directory, and see whether we
* have any left over temporary files to delete. */
nm_key_file_db_prune_tmp_files(kf_db);
}
nm_key_file_db_to_file(kf_db, force_write);