Skip to content

Commit

Permalink
Fix: logic error causing infinite waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao authored Mar 24, 2024
1 parent 841eaad commit a0a782f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/disk/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (part *Partition) WaitUntilAvailable() {
return
}

if uuid, err := part.GetUUID(); err != nil && uuid != "" {
if uuid, err := part.GetUUID(); err == nil && uuid != "" {
return
}

Expand Down

0 comments on commit a0a782f

Please sign in to comment.