gnome-vfs r5494 - in trunk: . libgnomevfs



Author: matthiasc
Date: Sat Aug 16 22:32:46 2008
New Revision: 5494
URL: http://svn.gnome.org/viewvc/gnome-vfs?rev=5494&view=rev

Log:
        Bug 356772 â excessive dbus warnings

        * libgnomevfs/gnome-vfs-volume-monitor-client.c: Reduce excessive
        warning spam when dbus is not available.



Modified:
   trunk/ChangeLog
   trunk/libgnomevfs/gnome-vfs-volume-monitor-client.c

Modified: trunk/libgnomevfs/gnome-vfs-volume-monitor-client.c
==============================================================================
--- trunk/libgnomevfs/gnome-vfs-volume-monitor-client.c	(original)
+++ trunk/libgnomevfs/gnome-vfs-volume-monitor-client.c	Sat Aug 16 22:32:46 2008
@@ -209,6 +209,9 @@
 
 	volume_monitor = GNOME_VFS_VOLUME_MONITOR (volume_monitor_client);
 
+	if (volume_monitor_client->dbus_conn == NULL)
+		return;
+
 	list = get_drives (volume_monitor_client->dbus_conn, volume_monitor);
 	for (l = list; l; l = l->next) {
 		drive = l->data;
@@ -229,6 +232,9 @@
 
 	volume_monitor = GNOME_VFS_VOLUME_MONITOR (volume_monitor_client);
 
+	if (volume_monitor_client->dbus_conn == NULL)
+		return;
+
 	list = get_volumes (volume_monitor_client->dbus_conn, volume_monitor);
 	for (l = list; l; l = l->next) {
 		volume = l->data;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]