diff options
Diffstat (limited to 'source4/lib/events.c')
-rw-r--r-- | source4/lib/events.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/events.c b/source4/lib/events.c index 50f3f53c94..13a9a444e8 100644 --- a/source4/lib/events.c +++ b/source4/lib/events.c @@ -186,15 +186,13 @@ struct timed_event *event_add_timed(struct event_context *ev, struct timed_event /* remove a timed event - the event to remove is matched only on the handler function return False on failure (event not found) */ BOOL event_remove_timed(struct event_context *ev, struct timed_event *e1) { struct timed_event *e; for (e=ev->timed_events; e; e=e->next) { - if (e->ref_count && - e->handler == e1->handler) { + if (e->ref_count && e == e1) { e->ref_count--; return True; } |