Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(console): prevent deadlock in
author new --switch
(#2032)
## Description Fixes #2024 This was caused by a read attempt over a lock nested inside a write lock. Thw write lock being `let mut inner = self.0.write()` and the read lock in `self.iroh_data_dir()` ## Notes & open questions I checked the rest of the code in #2013 and I think `author new --switch` is the only command affected ## Change checklist - [ ] Self-review. - [ ] Documentation updates if relevant. - [ ] Tests if relevant.
- Loading branch information