summaryrefslogtreecommitdiffstats
path: root/common/resourceaccess.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-06 09:56:07 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-06 09:56:07 +0200
commit9b073f37d06ed0022c55d1c5c7ce52c4b60cc774 (patch)
treed4fad8675cc6ad683b92f8276fe8a9e92e2d18e6 /common/resourceaccess.cpp
parent152f02f7e9855cfda6807c20f9319d22eadd6976 (diff)
downloadsink-9b073f37d06ed0022c55d1c5c7ce52c4b60cc774.tar.gz
sink-9b073f37d06ed0022c55d1c5c7ce52c4b60cc774.zip
Skip superfluous notifications
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r--common/resourceaccess.cpp4
1 files changed, 4 insertions, 0 deletions
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()
581 queuedInvoke([=]() { emit notification(n); }, this); 581 queuedInvoke([=]() { emit notification(n); }, this);
582 } break; 582 } break;
583 case Sink::Notification::Status: 583 case Sink::Notification::Status:
584 if (mResourceStatus == buffer->code()) {
585 Trace() << "Got an unnecessary status notification";
586 break;
587 }
584 mResourceStatus = buffer->code(); 588 mResourceStatus = buffer->code();
585 [[clang::fallthrough]]; 589 [[clang::fallthrough]];
586 case Sink::Notification::Warning: 590 case Sink::Notification::Warning: