Commit 56e04b56 authored by Committed by Olivier Crête
agent: Split component_free() into component_[close|free]()
Closing a component and freeing it are slightly conceptually different. As it happens, freeing it can result in the disposal of the component's NiceIOStream, which requires the agent lock to be released — but closing the rest of the Component requires the agent lock to be held. Splitting the function up simplifies locking handling in other parts of the code (see next commit).
Showing with 36 additions and 11 deletions