Skip to content
  • Philip Withnall's avatar
    agent: Split component_free() into component_[close|free]() · 56e04b56
    Philip Withnall authored and Olivier Crête's avatar Olivier Crête committed
    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).
    56e04b56