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

datagram-based: Correctly check the return value

parent 30335065
......@@ -480,9 +480,8 @@ nice_datagram_based_condition_check (GDatagramBased *datagram_based,
agent_lock ();
/* Grab the component. */
agent_find_component (agent, priv->stream_id, priv->component_id, NULL,
if (component == NULL) {
if (!agent_find_component (agent, priv->stream_id, priv->component_id, NULL,
&component)) {
retval = G_IO_HUP;
agent_unlock ();
goto done;
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