Files
for-gentoo/net-misc/networkmanager/files/networkmanager-0.6.5-better-suspend.patch
T
lxnay e115c927c3 added two nice patches from NM mailing list
git-svn-id: http://svn.sabayonlinux.org/overlay@1167 d7aec97c-591d-0410-af39-a8856400b30a
2007-04-11 15:45:13 +00:00

19 lines
614 B
Diff

--- a/gnome/libnm_glib/libnm_glib.c
+++ b/gnome/libnm_glib/libnm_glib.c
@@ -232,6 +232,7 @@ libnm_glib_dbus_filter (DBusConnection *
{
/* 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;
}