@property<EOL><INDENT>def available(self):<DEDENT>
if not self.adb_server_ip:<EOL><INDENT>return bool(self._adb)<EOL><DEDENT>try:<EOL><INDENT>adb_devices = self._adb_client.devices()<EOL>try:<EOL><INDENT>if any([self.host in dev.get_serial_no() for dev in adb_devices]):<EOL><INDENT>if not self._available:<EOL><INDENT>self._available = True<EOL><DEDENT>return True<EOL><DEDENT>if self._available:<EOL><INDENT>logging.error('<STR_LIT>')<EOL>self._available = False<EOL><DEDENT>return False<EOL><DEDENT>except RuntimeError:<EOL><INDENT>if self._available:<EOL><INDENT>logging.error('<STR_LIT>')<EOL>self._available = False<EOL><DEDENT>return False<EOL><DEDENT><DEDENT>except RuntimeError:<EOL><INDENT>if self._available:<EOL><INDENT>logging.error('<STR_LIT>')<EOL>self._available = False<EOL><DEDENT>return False<EOL><DEDENT>
Check whether the ADB connection is intact.