Commit b2611934 authored by Olivier Crête's avatar Olivier Crête

component: Don't report data & errors together

parent 5decdd9d
......@@ -727,6 +727,10 @@ component_condition_check (Component *component, GIOCondition condition)
g_socket_condition_check (socket_source->socket->fileno, condition);
}
/* Can't report having data and errors at the same time */
if (retval & (G_IO_IN | G_IO_OUT | G_IO_PRI))
retval &= ~(G_IO_HUP | G_IO_ERR);
return retval;
}
......
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