Don't call quit if the loop is NULL

As it will be, in the async case.
This commit is contained in:
Matthias Clasen
2016-07-06 22:48:37 -04:00
parent 821ba3dbaf
commit 29e76ad0d5

View File

@@ -433,7 +433,8 @@ prepare_print_called (GObject *source,
{
g_warning ("Error: %s", error->message);
g_error_free (error);
g_main_loop_quit (portal->loop);
if (portal->loop)
g_main_loop_quit (portal->loop);
return;
}
else