# File lib/mcollective/registration/base.rb, line 19
      def run(connection)
        return false if interval == 0

        Thread.new do
          loop do
            begin
              publish(body)

              sleep interval
            rescue Exception => e
              Log.error("Sending registration message failed: #{e}")
              sleep interval
            end
          end
        end
      end