Commit 083494f5 authored by Olivier Crête's avatar Olivier Crête

agent: Remove socket on read error

If a socket returned an error, remove it.
parent 6c1d57b1
......@@ -4288,6 +4288,9 @@ component_io_cb (GSocket *gsocket, GIOCondition condition, gpointer user_data)
}
}
if (remove_source)
component_remove_socket (component, socket_source->socket);
/* If we’re in the middle of a read, don’t emit any signals, or we could cause
* re-entrancy by (e.g.) emitting component-state-changed and having the
* client perform a read. */
......
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