Merge pull request #2516 from myxor/sched_clkinfo_fix

Sched: Fix crash in clock_info
pull/2519/head
Gordon Williams 2023-01-20 09:02:50 +00:00 committed by GitHub
commit 78ece54957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -20,4 +20,5 @@
0.17: Fix midnight in local timezone (alarms wouldn't always fire as expected in timezone != 0)
0.18: Update clock_info to avoid a redraw
0.19: Update clock_info to refresh periodically on active alarms/timers
0.20: Alarm dismiss and snooze events
0.20: Alarm dismiss and snooze events
0.21: Fix crash in clock_info

View File

@ -118,8 +118,8 @@
this.switchTimeout = _doSwitchTimeout.call(this, a, switchTimeout);
},
hide: function() {
clearInterval(this.interval);
clearTimeout(this.switchTimeout);
if (this.interval) clearInterval(this.interval);
if (this.switchTimeout) clearTimeout(this.switchTimeout);
this.interval = undefined;
this.switchTimeout = undefined;
},

View File

@ -1,7 +1,7 @@
{
"id": "sched",
"name": "Scheduler",
"version": "0.20",
"version": "0.21",
"description": "Scheduling library for alarms and timers",
"icon": "app.png",
"type": "scheduler",