Trace cancellation of pending desktop activity queries
This commit is contained in:
1 parent
16a9094770
commit
2caa653f02
2 files changed
+9
-1
No files matched your search
@@ -118,7 +118,11 @@ void UserActivityMonitor::poll() {
|
||||
connect(watcher, &QDBusPendingCallWatcher::finished, this, [this, watcher, generation, elapsedMs] {
|
||||
QDBusPendingReply<qulonglong> reply = *watcher;
|
||||
watcher->deleteLater();
|
||||
if (!m_watching || generation != m_generation) return;
|
||||
if (!m_watching || generation != m_generation) {
|
||||
GUI_DEBUG("activity: ignored obsolete GNOME reply generation=%llu current=%llu watching=%d",
|
||||
(unsigned long long)generation, (unsigned long long)m_generation, int(m_watching));
|
||||
return;
|
||||
}
|
||||
m_dbusPending = false;
|
||||
if (reply.isError()) {
|
||||
GUI_WARN("activity: GNOME idle monitor unavailable: %s", qPrintable(reply.error().message()));
|
||||
|
||||
Reference in new issue
Block a user