Skip to content

Commit

Permalink
Fix shutdown condition for counter server
Browse files Browse the repository at this point in the history
  • Loading branch information
repeatedly committed Apr 4, 2018
1 parent 44f3413 commit 59f8441
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fluent/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ module Fluent
module ServerModule
def before_run
@start_time = Time.now
@rpc_server = nil
@counter = nil

if config[:rpc_endpoint]
@rpc_endpoint = config[:rpc_endpoint]
Expand All @@ -66,7 +68,7 @@ def before_run

def after_run
stop_rpc_server if @rpc_endpoint
stop_counter_server if @counter_endpoint
stop_counter_server if @counter
Fluent::Supervisor.cleanup_resources
end

Expand Down

0 comments on commit 59f8441

Please sign in to comment.