Skip to content

Commit

Permalink
fix macos drop
Browse files Browse the repository at this point in the history
Signed-off-by: 21pages <[email protected]>
  • Loading branch information
21pages committed Jun 5, 2023
1 parent dd1eda3 commit 46fe216
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 46fe216

Please sign in to comment.