Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix: delete starter

  • Loading branch information...
commit 45571dc18b39f0d4998251d67ff430d52cd71528 1 parent 46c06e4
@hiro-su hiro-su authored
Showing with 3 additions and 15 deletions.
  1. +3 −15 lib/fluent/plugin/in_snmp.rb
View
18 lib/fluent/plugin/in_snmp.rb
@@ -103,18 +103,10 @@ def configure(conf)
end
end
- def starter
- @starter = Thread.new do
- yield
- end
- end
-
def start
- starter do
- @manager = SNMP::Manager.new(@snmp_init_params)
- @thread = Thread.new(&method(:run))
- @end_flag = false
- end
+ @manager = SNMP::Manager.new(@snmp_init_params)
+ @thread = Thread.new(&method(:run))
+ @end_flag = false
end
def run
@@ -139,10 +131,6 @@ def shutdown
@thread.join
@thread = nil
end
- if @starter
- @starter.join
- @starter = nil
- end
if @manager
@manager.close
end
Please sign in to comment.
Something went wrong with that request. Please try again.