lib/rest-ftp-daemon/workers/reporter.rb in rest-ftp-daemon-0.434.0 vs lib/rest-ftp-daemon/workers/reporter.rb in rest-ftp-daemon-0.435.0
- old
+ new
@@ -11,9 +11,10 @@
# Other configuration options
@feature_newrelic = Conf.feature?(:newrelic)
# Check that everything is OK
+ return "reporter disabled" if disabled?(@config[:timer])
return "invalid timer" unless @config[:timer].to_i > 0
return false
end
def worker_after