• Olivier Crête's avatar
    agent: Hold ref while doing async close · 41ac7386
    Olivier Crête authored
    It's possible that the callback will be called synchronously during the
    close function, in this case, we need to be ready to the last reference
    to the agent to be dropped in this callback.
    
    This fix was suggested by Fabrice Bellet
    
    Fixes #153
    41ac7386
agent.c 228 KB