code: def tick(self, filename):
          
          if self.connection_attempts < 10:
              # Trick to connect ASAP when
              # plugin is  started without
              # user interaction (CursorMove)
              self.setup(True, False)
              self.connection_attempts += 1
          self.unqueue_and_display(filename)
docs: Try to connect and display messages in queue.