File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1036,11 +1036,6 @@ int flb_engine_start(struct flb_config *config)
1036
1036
event -> priority = FLB_ENGINE_PRIORITY_SHUTDOWN ;
1037
1037
}
1038
1038
else if (ret == FLB_ENGINE_SHUTDOWN ) {
1039
- if (config -> shutdown_fd > 0 ) {
1040
- mk_event_timeout_destroy (config -> evl ,
1041
- & config -> event_shutdown );
1042
- }
1043
-
1044
1039
/* Increase the grace counter */
1045
1040
config -> grace_count ++ ;
1046
1041
@@ -1105,6 +1100,12 @@ int flb_engine_start(struct flb_config *config)
1105
1100
tasks );
1106
1101
ret = config -> exit_status_code ;
1107
1102
flb_engine_shutdown (config );
1103
+
1104
+ if (config -> shutdown_fd > 0 ) {
1105
+ mk_event_timeout_destroy (config -> evl ,
1106
+ & config -> event_shutdown );
1107
+ }
1108
+
1108
1109
config = NULL ;
1109
1110
return ret ;
1110
1111
}
You can’t perform that action at this time.
0 commit comments