core: fix cancelling of authorization request for active connection
The async authorization request also carries user-data and its result must always be handled. For example, it might carry a GDBusMethodInvocation context, which must be returned and freed. Hence, when cancelling the request, we must always invoke the callback. Also, when the NMActiveConnection progresses to state disconnected, automatically abort the authorization request.
Showing with 27 additions and 14 deletions