From 9b073f37d06ed0022c55d1c5c7ce52c4b60cc774 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 6 Jul 2016 09:56:07 +0200 Subject: Skip superfluous notifications --- common/resourceaccess.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 95b4a7e..6b2ddfd 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp @@ -581,6 +581,10 @@ bool ResourceAccess::processMessageBuffer() queuedInvoke([=]() { emit notification(n); }, this); } break; case Sink::Notification::Status: + if (mResourceStatus == buffer->code()) { + Trace() << "Got an unnecessary status notification"; + break; + } mResourceStatus = buffer->code(); [[clang::fallthrough]]; case Sink::Notification::Warning: -- cgit v1.2.3