From 89bb6bbb5e46f9a8c1da3aa756de9f7cfdf57842 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 4 Nov 2014 12:27:27 -0600 Subject: add a comment explaining why it's okay to let that fail silently. --- src/wakeup-timer-powerd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wakeup-timer-powerd.cpp') 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)) { -- cgit v1.2.3