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

component: Don't report data & errors together

parent 501a706e
......@@ -672,6 +672,10 @@ nice_component_condition_check (NiceComponent *component,
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