NetworkManager r4021 - trunk/libnm-glib
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r4021 - trunk/libnm-glib
- Date: Wed, 27 Aug 2008 18:09:30 +0000 (UTC)
Author: dcbw
Date: Wed Aug 27 18:09:30 2008
New Revision: 4021
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4021&view=rev
Log:
Prevent double-exports
Modified:
trunk/libnm-glib/nm-settings.c
Modified: trunk/libnm-glib/nm-settings.c
==============================================================================
--- trunk/libnm-glib/nm-settings.c (original)
+++ trunk/libnm-glib/nm-settings.c Wed Aug 27 18:09:30 2008
@@ -423,6 +423,8 @@
g_return_if_fail (dbus_connection != NULL);
priv = NM_EXPORTED_CONNECTION_GET_PRIVATE (connection);
+ /* Don't allow the connection to be exported twice */
+ g_return_if_fail (nm_connection_get_path (priv->wrapped) == NULL);
path = g_strdup_printf ("%s/%u", NM_DBUS_PATH_SETTINGS, ec_counter++);
nm_connection_set_path (priv->wrapped, path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]