Dont attempt to initialize session persistence folder if its turned off
This commit is contained in:
parent
108ad74464
commit
b687a1882c
1 changed files with 1 additions and 0 deletions
|
|
@ -516,6 +516,7 @@ impl Session {
|
|||
let peer_opts = opts.peer_opts.unwrap_or_default();
|
||||
let persistence_filename = match opts.persistence_filename {
|
||||
Some(filename) => filename,
|
||||
None if !opts.persistence => PathBuf::new(),
|
||||
None => Self::default_persistence_filename()?,
|
||||
};
|
||||
let spawner = BlockingSpawner::default();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue