internal/ui: bug fix: check the error of TimeBeginPeriod

This commit is contained in:
Hajime Hoshi 2024-01-28 14:25:17 +09:00
parent 7e4cdf5211
commit 11394d246f

View File

@ -249,6 +249,7 @@ func init() {
return return
} }
// Use a better timer resolution (golang/go#44343). // 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. // TODO: This might not be necessary from Go 1.23.
windows.TimeBeginPeriod(1) _ = windows.TimeBeginPeriod(1)
} }