Make sure a pending call timeout isn't assumed.
authorScott James Remnant <scott@ubuntu.com>
Mon, 11 May 2009 21:38:23 +0000 (22:38 +0100)
committerScott James Remnant <scott@ubuntu.com>
Thu, 28 May 2009 09:47:21 +0000 (11:47 +0200)
commitba22606c3b21c55c5c0af30d8f07edd71ded7213
tree5a6c38f6acafb2cf87fb9d8381b8209cd3f303fe
parentf322112b84bef5f6e7c38c08e99a28c4f576c897
Make sure a pending call timeout isn't assumed.

* dbus/dbus-connection.c (_dbus_connection_attach_pending_call_unlocked):
  Don't assume that the pending call has a timeout.
  (connection_timeout_and_complete_all_pending_call_unlocked): check that
  the timeout was actually added before removing it; this safeguards us
  if the pending call doesn't have a timeout.

Signed-off-by: Scott James Remnant <scott@ubuntu.com>
dbus/dbus-connection.c