lib/asir/transport/beanstalk.rb in asir_beanstalk-1.2.3 vs lib/asir/transport/beanstalk.rb in asir_beanstalk-1.2.5
- old
+ new
@@ -189,10 +189,10 @@
end
def _start_conduit!
opt = host ? "-l #{host} " : ""
cmd = "beanstalkd #{opt}-p #{port} -z #{1 * 1024 * 1024} #{@conduit_options[:beanstalkd_options]}"
- $stderr.puts " #{cmd}" if @conduit_options[:verbose]
+ $stderr.puts " #{cmd}" rescue nil if @conduit_options[:verbose]
exec(cmd)
end
end
# !SLIDE END
end # class