conn.c: fix Connection setup in absence of main loop, and error handling
commit7d70b07e62d579ce85572a3e1ebb92f42461a185
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 16 Jan 2007 19:36:05 +0000 (16 19:36 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 16 Jan 2007 19:36:05 +0000 (16 19:36 +0000)
tree4bd6a2b29a3b78253d9ecb9a52ff07d21b0d2726
parent6d7356140055082a30090161c586b4575f8f0fa7
conn.c: fix Connection setup in absence of main loop, and error handling

* Only set up a main loop if we actually have one (not None)
* Don't double-close the DBusConnection (causing an assertion in libdbus) if
  we somehow fail to set up the main loop. Thanks to tsuraan
  <tsuraan at gmail.com> for the bug report.
_dbus_bindings/conn.c