Do not shut down API webserver until after pipelines have been shut down

Fixes #10880
This commit is contained in:
Dan Hermann 2019-06-19 12:26:28 -05:00
parent 5e970fe578
commit 8a048ccc27

View file

@ -186,9 +186,9 @@ class LogStash::Agent
pipeline_bus.setBlockOnUnlisten(true)
stop_collecting_metrics
stop_webserver
transition_to_stopped
converge_result = shutdown_pipelines
stop_webserver
converge_result
end