gprs: pri_set_apn: make reply msg optional

Automatic context activation will set the apn by itself. No
dbus message to reply to.
This commit is contained in:
Dragos Tatulea 2016-03-17 18:02:16 +01:00 committed by Denis Kenzior
parent 573edbee58
commit 9173d7e2e4
1 changed files with 2 additions and 1 deletions

View File

@ -965,7 +965,8 @@ static DBusMessage *pri_set_apn(struct pri_context *ctx, DBusConnection *conn,
storage_sync(ctx->gprs->imsi, SETTINGS_STORE, settings);
}
g_dbus_send_reply(conn, msg, DBUS_TYPE_INVALID);
if (msg)
g_dbus_send_reply(conn, msg, DBUS_TYPE_INVALID);
ofono_dbus_signal_property_changed(conn, ctx->path,
OFONO_CONNECTION_CONTEXT_INTERFACE,