mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-25 19:12:21 +00:00
chore: using write lock to fix acquire lock error (#5938)
This commit is contained in:
@ -373,7 +373,7 @@ impl FolderManager {
|
||||
F1: FnOnce() -> Output,
|
||||
F2: FnOnce(&Folder) -> Output,
|
||||
{
|
||||
let folder = self.mutex_folder.read();
|
||||
let folder = self.mutex_folder.write();
|
||||
match &*folder {
|
||||
None => none_callback(),
|
||||
Some(folder) => f2(folder),
|
||||
|
Reference in New Issue
Block a user