Commit b59d0495 authored by Olivier Crête's avatar Olivier Crête
Browse files

datagram-based: Add missing locking

parent 81c97d8b
......@@ -536,15 +536,18 @@ nice_datagram_based_condition_check (GDatagramBased *datagram_based,
goto done;
}
agent_lock ();
/* Grab the component. */
agent_find_component (agent, priv->stream_id, priv->component_id, NULL,
&component);
if (component == NULL) {
retval = G_IO_HUP;
agent_unlock ();
goto done;
}
retval = nice_component_condition_check (component, condition);
agent_unlock ();
done:
g_clear_object (&agent);
......
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