Skip to content

Commit

Permalink
Merge pull request reujab#13 from 21pages/main
Browse files Browse the repository at this point in the history
fix macos drop
  • Loading branch information
segevfiner committed Jun 5, 2023
2 parents dd1eda3 + 46fe216 commit 974b3e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ impl Drop for Awake {
}
}

if self.display_assertion != 0 {
if self.idle_assertion != 0 {
unsafe {
IOPMAssertionRelease(self.display_assertion);
IOPMAssertionRelease(self.idle_assertion);
}
}

Expand Down

0 comments on commit 974b3e4

Please sign in to comment.