Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Fixed
Comment thread
hovancik marked this conversation as resolved.
- fix duplicate powerMonitor listeners accumulating on system resume or screen unlock

## [1.21.0] - 2026-04-25
### Added
Expand Down
4 changes: 4 additions & 0 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ function onResumeOrUnlock () {
}

function startPowerMonitoring () {
powerMonitor.removeListener('suspend', onSuspendOrLock)
powerMonitor.removeListener('lock-screen', onSuspendOrLock)
powerMonitor.removeListener('resume', onResumeOrUnlock)
powerMonitor.removeListener('unlock-screen', onResumeOrUnlock)
powerMonitor.on('suspend', onSuspendOrLock)
powerMonitor.on('lock-screen', onSuspendOrLock)
powerMonitor.on('resume', onResumeOrUnlock)
Expand Down
Loading