Merge pull request #5080 from vector-im/t3chguy/fix-powersave-typo

fix really dumb blunder/typo preventing system from going to sleep.
pull/4972/merge
Matthew Hodgson 2017-09-19 08:13:26 +01:00 committed by GitHub
commit 26c8d23c21
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ let powerSaveBlockerId;
electron.ipcMain.on('app_onAction', function(ev, payload) {
switch (payload.action) {
case 'call_state':
if (powerSaveBlockerId && powerSaveBlockerId.isStarted(powerSaveBlockerId)) {
if (powerSaveBlockerId && electron.powerSaveBlocker.isStarted(powerSaveBlockerId)) {
if (payload.state === 'ended') {
electron.powerSaveBlocker.stop(powerSaveBlockerId);
}