We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c607e7 commit 0e52455Copy full SHA for 0e52455
src/Reminder.vala
@@ -53,7 +53,9 @@ public class Badger.Reminder : GLib.Object {
53
interval = new_interval;
54
55
// Disable old timer to avoid repeated notifications
56
- Source.remove (timeout_id);
+ if (timeout_id > 0) {
57
+ Source.remove (timeout_id);
58
+ }
59
60
// Setting a zero-second timer can hang the entire OS
61
if (interval > 0) {
0 commit comments