def stop_discovery(self):
try:<EOL><INDENT>self._adapter.StopDiscovery()<EOL><DEDENT>except dbus.exceptions.DBusException as e:<EOL><INDENT>if (e.get_dbus_name() == '<STR_LIT>') and (e.get_dbus_message() == '<STR_LIT>'):<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>raise _error_from_dbus_error(e)<EOL><DEDENT><DEDENT>
Stops the discovery started with `start_discovery`