Commit e47ae48f authored by Chris T's avatar Chris T

Fix dbus error for change settings.

Turned out I made a dumb error here.
parent 76b51776
......@@ -197,6 +197,10 @@ handle_method_call (GDBusConnection *connection,
modem->MMS_proxy = g_strdup(mmsproxy);
g_key_file_set_string(modem->modemsettings, SETTINGS_GROUP,
"CarrierMMSProxy", modem->MMS_proxy);
if (g_strcmp0 (modem->MMS_proxy, "NULL") == 0) {
g_free(modem->MMS_proxy);
modem->MMS_proxy = NULL;
}
}
if (g_strcmp0(mmsapn, "") != 0) {
......@@ -207,13 +211,6 @@ handle_method_call (GDBusConnection *connection,
}
mms_settings_close(IDENTIFIER, SETTINGS_STORE,
modem->modemsettings, TRUE);
/*
* TODO: For some reason if you change the values here from initial
* values to correct values, the mmsc will give you a 503 the
* next time you try to get a message. The only way to fix it
* is to restart mmsd. I cannot figure out why this happens.
*/
g_dbus_method_invocation_return_value (invocation, NULL);
}
......@@ -924,4 +921,4 @@ static void modemmanager_exit(void)
}
MMS_PLUGIN_DEFINE(modemmanager, modemmanager_init, modemmanager_exit)
MMS_PLUGIN_DEFINE(modemmanager, modemmanager_init, modemmanager_exit)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment