Skip to content

Commit b3494c8

Browse files
committed
config: use proper timeout destroy api for flush fd
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 4c8307f commit b3494c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/flb_config.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,8 @@ void flb_config_exit(struct flb_config *config)
401401

402402
/* Event flush */
403403
if (config->evl) {
404-
mk_event_del(config->evl, &config->event_flush);
404+
mk_event_timeout_destroy(config->evl, &config->event_flush);
405405
}
406-
mk_event_closesocket(config->flush_fd);
407406

408407
/* Release scheduler */
409408
flb_sched_destroy(config->sched);

0 commit comments

Comments
 (0)