mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Fixed deadlock
This commit is contained in:
parent
4519204580
commit
14aa071e7f
@ -410,7 +410,9 @@ namespace VirtualFileSystem
|
||||
{
|
||||
foreach (auto Child in NodeToDelete->Children)
|
||||
{
|
||||
VFSLock.Unlock();
|
||||
FileStatus Status = Delete(GetPathFromNode(Child).Get(), true);
|
||||
VFSLock.Lock(__FUNCTION__);
|
||||
if (Status != FileStatus::OK)
|
||||
{
|
||||
vfsdbg("Failed to delete child %s with status %d. (%s)", Child->Name, Status, Path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user