aboutsummaryrefslogtreecommitdiff
path: root/src/wakeup-timer-powerd.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-11-04 12:27:27 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-11-04 12:27:27 -0600
commit89bb6bbb5e46f9a8c1da3aa756de9f7cfdf57842 (patch)
tree9010f4f245bc7bc078baa3e73f2675b0c5431c61 /src/wakeup-timer-powerd.cpp
parentb4db6b24159ac704a0ac37d280534bc8761240a9 (diff)
downloadayatana-indicator-datetime-89bb6bbb5e46f9a8c1da3aa756de9f7cfdf57842.tar.gz
ayatana-indicator-datetime-89bb6bbb5e46f9a8c1da3aa756de9f7cfdf57842.tar.bz2
ayatana-indicator-datetime-89bb6bbb5e46f9a8c1da3aa756de9f7cfdf57842.zip
add a comment explaining why it's okay to let that fail silently.
Diffstat (limited to 'src/wakeup-timer-powerd.cpp')
-rw-r--r--src/wakeup-timer-powerd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wakeup-timer-powerd.cpp b/src/wakeup-timer-powerd.cpp
index 04db898..27b037e 100644
--- a/src/wakeup-timer-powerd.cpp
+++ b/src/wakeup-timer-powerd.cpp
@@ -192,6 +192,8 @@ private:
ret = g_dbus_connection_call_finish(G_DBUS_CONNECTION(o), res, &error);
if (ret == nullptr)
{
+ /* powerd isn't on the desktop, but we don't need hardware wakeups there
+ anyway... so no need to warn on SERVICE_UNKNOWN */
if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
!g_error_matches(error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))
{