diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-06 09:56:07 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-06 09:56:07 +0200 |
commit | 9b073f37d06ed0022c55d1c5c7ce52c4b60cc774 (patch) | |
tree | d4fad8675cc6ad683b92f8276fe8a9e92e2d18e6 /common/resourceaccess.cpp | |
parent | 152f02f7e9855cfda6807c20f9319d22eadd6976 (diff) | |
download | sink-9b073f37d06ed0022c55d1c5c7ce52c4b60cc774.tar.gz sink-9b073f37d06ed0022c55d1c5c7ce52c4b60cc774.zip |
Skip superfluous notifications
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r-- | common/resourceaccess.cpp | 4 |
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: |