def METHOD_NAME(self):
    """Sends lines and purges queue"""
    if not self.send_to_tray:
        return
    lines = tuple(self.log_queue)
    self.log_queue.clear()
    if lines:
        payload = {
            "host": self.host_id,
            "action": MsgAction.ADD,
            "text": "\n".join(lines)
        }
        self._send(payload)