• Thomas Haller's avatar
    secret-agent: fix detection of disapearing secret-agent · 9b35d29d
    Thomas Haller authored
    The signal "notify:g-name-owner" is only emitted for well-known
    names, but not for unique connection names (":1.x") such as the secret
    agent's connection. Also, it will not be emited for private connections.
    That meant that when the client disconnected without explicitly
    unregistering, the NMSecretAgent was not cleaned up and leaked
    As only one instance of secret agent with a certain 'identifier/uid'
    pair can register, this bug also prevented the client from registering
    until restart of NetworkManager.
    Fixes: df670681
nm-bus-manager.c 27.4 KB