gnome-main-menu r473 - in trunk: . main-menu/src



Author: mboman
Date: Tue Jun 24 21:43:34 2008
New Revision: 473
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=473&view=rev

Log:
Make sure that we only use a device that has got an ip address.


Modified:
   trunk/ChangeLog
   trunk/main-menu/src/network-status-agent.c

Modified: trunk/main-menu/src/network-status-agent.c
==============================================================================
--- trunk/main-menu/src/network-status-agent.c	(original)
+++ trunk/main-menu/src/network-status-agent.c	Tue Jun 24 21:43:34 2008
@@ -305,7 +305,8 @@
 		glibtop_get_netload (&net_load, networks[i]);
 
 		if (CHECK_FLAG (net_load.if_flags, GLIBTOP_IF_FLAGS_RUNNING)
-			&& !CHECK_FLAG (net_load.if_flags, GLIBTOP_IF_FLAGS_LOOPBACK))
+			&& !CHECK_FLAG (net_load.if_flags, GLIBTOP_IF_FLAGS_LOOPBACK)
+			&& net_load.address)
 		{
 			sock_fd = iw_sockets_open ();
 



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