hif: Fix a crash when refreshing a repo that is not enabled

This commit is contained in:
Richard Hughes 2014-08-29 13:05:06 +01:00
parent 8ffab1c856
commit 3382ad3853

View File

@ -1276,16 +1276,13 @@ pk_backend_refresh_source (PkBackendJob *job,
return FALSE; return FALSE;
} else { } else {
g_propagate_error (error, error_local); g_propagate_error (error, error_local);
goto out; return FALSE;
} }
} }
} }
/* done */ /* done */
if (!hif_state_done (state, error)) return hif_state_done (state, error);
return FALSE;
out:
return ret;
} }
/** /**