diff options
author | John Brooks <john.brooks@jollamobile.com> | 2013-12-12 15:46:27 -0700 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-01-22 11:44:42 +0000 |
commit | 07955827bba3ed6a6426ca4f2cb32efef2dc04c0 (patch) | |
tree | 79b723faf50c91916ab46768d78a6a6063c29d98 | |
parent | 0932dba29fa9de8e7268a924c4c93ccebb7dc65c (diff) | |
download | telepathy-mission-control-07955827bba3ed6a6426ca4f2cb32efef2dc04c0.tar.gz |
Prevent assert for offline accounts with power saving
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=72652
-rw-r--r-- | src/mcd-connection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mcd-connection.c b/src/mcd-connection.c index 1d71da4e..e04ff78f 100644 --- a/src/mcd-connection.c +++ b/src/mcd-connection.c @@ -1626,10 +1626,10 @@ on_inactivity_changed (McdSlacker *slacker, McdConnection *self) { McdConnectionPrivate *priv = self->priv; - DEBUG ("%sactive, %s have power saving iface.", inactive ? "in" : "", - priv->has_power_saving_if ? "has" : "doesn't"); + DEBUG ("%sactive, connection %s have power saving iface.", inactive ? "in" : "", + priv->has_power_saving_if ? "does" : "doesn't"); - if (priv->has_power_saving_if) + if (priv->tp_conn != NULL && priv->has_power_saving_if) tp_cli_connection_interface_power_saving_call_set_power_saving (priv->tp_conn, -1, inactive, NULL, NULL, NULL, NULL); } |