more dbus_connection_close fixes
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 15 Aug 2006 10:03:55 +0000 (10:03 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 15 Aug 2006 10:03:55 +0000 (10:03 +0000)
zypp/target/hal/Hal.cc
zypp/target/hal/HalContext.cc

index 48778df17bdc3c6160c0ef07afc7f61fa82f5b04..60e0c38b743d8db442b7b20ff6e23e097f00498f 100644 (file)
@@ -92,7 +92,7 @@ struct Hal::Impl
            } else {
                report_error ("libhal_ctx_new: Can't create libhal context", error);
            }
-           dbus_connection_disconnect (_connection);
+           dbus_connection_close (_connection);
            dbus_connection_unref (_connection);
            _connection = NULL;
        } else {
@@ -108,7 +108,7 @@ struct Hal::Impl
            libhal_ctx_free (_context);
        }
        if (_connection) {
-           dbus_connection_disconnect (_connection);
+           dbus_connection_close (_connection);
            dbus_connection_unref (_connection);
        }
     }
index 70f8bc877ca4796f81db3186703de1e992972c51..4b437400a7eb7a269f36684b4487b181d28d4507 100644 (file)
@@ -200,7 +200,7 @@ namespace zypp
         hctx = libhal_ctx_new();
         if( !hctx)
         {
-          dbus_connection_disconnect(conn);
+          dbus_connection_close(conn);
           dbus_connection_unref(conn);
           conn = NULL;
 
@@ -214,7 +214,7 @@ namespace zypp
           libhal_ctx_free(hctx);
           hctx = NULL;
 
-          dbus_connection_disconnect(conn);
+          dbus_connection_close(conn);
           dbus_connection_unref(conn);
           conn = NULL;
 
@@ -228,7 +228,7 @@ namespace zypp
           libhal_ctx_free(hctx);
           hctx = NULL;
 
-          dbus_connection_disconnect(conn);
+          dbus_connection_close(conn);
           dbus_connection_unref(conn);
           conn = NULL;