Fix rh #232691; never got onto trunk

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2845 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2007-09-21 16:25:54 +00:00
parent 7e3abbe27f
commit f95dd6b2d5

View file

@ -232,6 +232,7 @@ libnm_glib_dbus_filter (DBusConnection *connection,
{
/* Try to reactivate our connection to dbus on the next pass through the event loop */
ctx->nm_state = LIBNM_NO_DBUS;
dbus_connection_close (ctx->dbus_con);
dbus_connection_unref (ctx->dbus_con);
ctx->dbus_con = NULL;
libnm_glib_schedule_dbus_watcher (ctx);
@ -448,6 +449,7 @@ libnm_glib_ctx_free (libnm_glib_ctx *ctx)
if (ctx->dbus_con)
{
dbus_connection_close (ctx->dbus_con);
dbus_connection_unref (ctx->dbus_con);
ctx->dbus_con = NULL;
}