diff options
author | Determinant <[email protected]> | 2018-08-28 20:13:58 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-08-28 20:13:58 -0400 |
commit | 4f5b1b8257a2d342446f7d4a51427d14cb2a2b14 (patch) | |
tree | 90dba2adc18a2066783d6726d4690c5039d3d60c | |
parent | 6b86aade15895d205f504ba70da93979bd6ee663 (diff) |
...
-rw-r--r-- | include/salticidae/event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/salticidae/event.h b/include/salticidae/event.h index de8b4af..0537a80 100644 --- a/include/salticidae/event.h +++ b/include/salticidae/event.h @@ -105,8 +105,8 @@ class Event { } } - void add() { event_add(ev, nullptr); } - void del() { event_del(ev); } + void add() { if (ev) event_add(ev, nullptr); } + void del() { if (ev) event_del(ev); } void add_with_timeout(double timeout) { event_add_with_timeout(ev, timeout); } |