[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim-runtime] agents/nepomukfeeder: The high priority queue
From: Christian Mollekopf <chrigi_1 () fastmail ! fm>
Date: 2011-11-30 23:04:40
Message-ID: 20111130230440.84E55A60B9 () git ! kde ! org
[Download RAW message or body]
Git commit 9f8937607a8faabd629ba1cb29624f22c41d0106 by Christian Mollekopf.
Committed on 30/11/2011 at 03:25.
Pushed by cmollekopf into branch 'master'.
The high priority queue should ignore the online status
M +2 -3 agents/nepomukfeeder/feederqueue.cpp
http://commits.kde.org/kdepim-runtime/9f8937607a8faabd629ba1cb29624f22c41d0106
diff --git a/agents/nepomukfeeder/feederqueue.cpp b/agents/nepomukfeeder/feederqueue.cpp
index ecd6c3d..30c3dab 100644
--- a/agents/nepomukfeeder/feederqueue.cpp
+++ b/agents/nepomukfeeder/feederqueue.cpp
@@ -217,14 +217,13 @@ void FeederQueue::processItemQueue()
if ( (mProcessedAmount % 100) == 0 && mTotalAmount > 0 && mProcessedAmount <= mTotalAmount )
emit progress( (mProcessedAmount * 100) / mTotalAmount );
- if ( !mOnline )
- return;
-
if ( !highPrioQueue.isEmpty() ) {
//kDebug() << "high";
if (!highPrioQueue.processItem()) {
return;
}
+ } else if ( !mOnline ) {
+ return;
} else if ( !lowPrioQueue.isEmpty() ){
//kDebug() << "low";
if (!lowPrioQueue.processItem()) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic