lib: manage pending consolekit calls with cancellable
authorRay Strode <rstrode@redhat.com>
Mon, 21 May 2012 21:13:09 +0000 (17:13 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 13 Jun 2012 11:14:52 +0000 (07:14 -0400)
commit5e2f077e97a752092a31756eb6b3df03bc119c3d
tree3202173ed7e3229985e794452fdccc278d9ce926
parent279a6e0dfaffd6d8aa8363682d599ef68b485fbe
lib: manage pending consolekit calls with cancellable

Pending NewSession objects can disappear just as quickly
as they appear in response to ConsoleKit signals.  If
we're in the middle of talking to ConsoleKit when an
object disappears and is subsequently freed, then we'll
still try to access it from the reply callback.

This commit cancels any pending messages to the consolekit
daemon, when the session goes away.

https://bugs.freedesktop.org/show_bug.cgi?id=50112
src/libaccountsservice/act-user-manager.c