summaryrefslogtreecommitdiff
path: root/src/mcd-account.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-04-29 16:04:13 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-05-06 10:23:14 +0100
commita075d41bcfcd16b4c90811e497c183fac4eb89bf (patch)
tree7351a2ea8b0097ccf39e5f5a12cc895ab604e579 /src/mcd-account.c
parent21cfe143327f5a8a76a83a29128261d9e90a46ce (diff)
fd.o #21154: McdAccount: UpdateParameters: don't reconnect automatically
Diffstat (limited to 'src/mcd-account.c')
-rw-r--r--src/mcd-account.c27
1 files changed, 7 insertions, 20 deletions
diff --git a/src/mcd-account.c b/src/mcd-account.c
index 87163fce..b517edec 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -1329,9 +1329,6 @@ _mcd_account_set_parameter (McdAccount *account, const gchar *name,
*
* Alter the account parameters.
*
- * For the moment, the account will automatically be reconnected if anything
- * is appended to @not_yet, in violation of telepathy-spec (fd.o #21154).
- *
* Returns: %TRUE (possibly appending borrowed strings to @not_yet) on success,
* %FALSE (setting @error) on failure
*/
@@ -1464,24 +1461,14 @@ _mcd_account_set_parameters (McdAccount *account, GHashTable *params,
if (mcd_account_get_connection_status (account) ==
TP_CONNECTION_STATUS_CONNECTED)
{
- if (reset_connection)
- {
- /* FIXME: telepathy-spec violation (fd.o #21154) */
- DEBUG ("resetting connection");
- mcd_connection_close (priv->connection);
- _mcd_account_connection_begin (account);
- }
- else
- {
- GSList *list;
+ GSList *list;
- for (list = dbus_properties; list != NULL; list = list->next)
- {
- name = list->data;
- DEBUG ("updating parameter %s", name);
- value = g_hash_table_lookup (params, name);
- _mcd_connection_update_property (priv->connection, name, value);
- }
+ for (list = dbus_properties; list != NULL; list = list->next)
+ {
+ name = list->data;
+ DEBUG ("updating parameter %s", name);
+ value = g_hash_table_lookup (params, name);
+ _mcd_connection_update_property (priv->connection, name, value);
}
}
g_slist_free (dbus_properties);