attempt to fix pause_notification

This commit is contained in:
Edward Shen 2020-04-17 13:52:37 -04:00
parent d0dfab3b66
commit bd8cc9f332
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -98,8 +98,8 @@ Module.register('MMM-pages', {
case 'PAUSE_ROTATION':
if (!this.rotationPaused) {
Log.log('[Pages]: pausing rotation due to notification');
this.clearInterval(this.timer);
this.clearInterval(this.delayTimer);
clearInterval(this.timer);
clearInterval(this.delayTimer);
this.rotationPaused = true;
} else {
Log.warn('[Pages]: Was asked to paused but rotation was already paused!');