Skip to content

Commit

Permalink
internal/ui: bug fix: check the error of TimeBeginPeriod
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Jan 28, 2024
1 parent 7e4cdf5 commit 11394d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/ui/ui_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ func init() {
return
}
// Use a better timer resolution (golang/go#44343).
// An error is ignored. The application is still valid even if a higher resolution timer is not available.
// TODO: This might not be necessary from Go 1.23.
windows.TimeBeginPeriod(1)
_ = windows.TimeBeginPeriod(1)
}

0 comments on commit 11394d2

Please sign in to comment.