core: checksum builtin: Actually quit main loop on error too
This commit is contained in:
parent
7e32bc6cd7
commit
cb5b3b15f5
|
|
@ -44,12 +44,12 @@ on_checksum_received (GObject *obj,
|
|||
GChecksum *checksum = NULL;
|
||||
AsyncChecksumData *data = user_data;
|
||||
|
||||
if (!ostree_checksum_file_async_finish ((GFile*)obj, result, &checksum, data->error))
|
||||
return;
|
||||
if (ostree_checksum_file_async_finish ((GFile*)obj, result, &checksum, data->error))
|
||||
{
|
||||
g_print ("%s\n", g_checksum_get_string (checksum));
|
||||
|
||||
g_print ("%s\n", g_checksum_get_string (checksum));
|
||||
|
||||
g_checksum_free (checksum);
|
||||
g_checksum_free (checksum);
|
||||
}
|
||||
|
||||
g_main_loop_quit (data->loop);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue