lib: Fix crasher calling _about_to_sleep_sync()

https://bugs.freedesktop.org/show_bug.cgi?id=54976
This commit is contained in:
Bastien Nocera 2013-10-13 00:49:24 +02:00
parent a10a61e181
commit fc5793e742

View file

@ -277,7 +277,7 @@ up_client_about_to_sleep_sync (UpClient *client,
g_return_val_if_fail (client->priv->proxy != NULL, FALSE);
ret = dbus_g_proxy_call (client->priv->proxy, "AboutToSleep", &error_local,
G_TYPE_STRING, sleep_kind,
G_TYPE_STRING, up_sleep_kind_to_string (sleep_kind),
G_TYPE_INVALID,
G_TYPE_INVALID);
if (!ret) {