Commit 72c67c4e authored by Olivier Crête's avatar Olivier Crête

agent: Don't crash if recv cancelled without a GError

parent 062c9f19
......@@ -3369,7 +3369,10 @@ static gboolean
nice_agent_recv_cancelled_cb (GCancellable *cancellable, gpointer user_data)
{
GError **error = user_data;
return !g_cancellable_set_error_if_cancelled (cancellable, error);
if (error && *error)
g_cancellable_set_error_if_cancelled (cancellable, error);
return G_SOURCE_REMOVE;
}
static gint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment