Logo Search packages:      
Sourcecode: libmpdclient version File versions  Download package

bool mpd_connection_clear_error ( struct mpd_connection connection  ) 

Attempts to recover from an error condition. This function must be called after a non-fatal error before you can continue using this object.

Returns:
true on success, false if the error is fatal and cannot be recovered

Definition at line 63 of file error.c.

References mpd_connection::error, and mpd_connection_clear_error().

Referenced by mpd_connection_clear_error().

{
      if (mpd_error_is_fatal(&connection->error))
            /* impossible to recover */
            return false;

      mpd_error_clear(&connection->error);
      return true;
}


Generated by  Doxygen 1.6.0   Back to index