• Youness Alaoui's avatar
    Do not access component if it was destroyed when calling the io callback · 287f8a8b
    Youness Alaoui authored
    When calling component_emit_io_callback, the agent mutex will be unlocked before
    the callback is called, this can cause another thread to remove the
    stream and thus destroying the component. We must verify that the
    source was not destroyed after calling component_emit_io_callback
    and avoid accessing the component in that case.
    Bug report by Stephan Thamm in the mailing list.
    287f8a8b
agent.c 169 KB