diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-19 14:36:41 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-19 14:36:41 +0200 |
commit | 470f54718c9603b3f1ee5647e7d016f4f10a4059 (patch) | |
tree | 50cfc7349151c60227300ecba9d389a856fe9cec /common/genericresource.cpp | |
parent | d656a83e0241cf5f858441b4074ca172e0405ace (diff) | |
download | sink-470f54718c9603b3f1ee5647e7d016f4f10a4059.tar.gz sink-470f54718c9603b3f1ee5647e7d016f4f10a4059.zip |
This doesn't work yet together with waitForFinished
Diffstat (limited to 'common/genericresource.cpp')
-rw-r--r-- | common/genericresource.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/genericresource.cpp b/common/genericresource.cpp index 3b3fdb0..943f7d2 100644 --- a/common/genericresource.cpp +++ b/common/genericresource.cpp | |||
@@ -195,12 +195,12 @@ void GenericResource::processCommand(int commandId, const QByteArray &data) | |||
195 | mUserQueue.startTransaction(); | 195 | mUserQueue.startTransaction(); |
196 | enqueueCommand(mUserQueue, commandId, data); | 196 | enqueueCommand(mUserQueue, commandId, data); |
197 | modifications++; | 197 | modifications++; |
198 | if (modifications >= 100) { | 198 | // if (modifications >= 100) { |
199 | mUserQueue.commit(); | 199 | mUserQueue.commit(); |
200 | modifications = 0; | 200 | // modifications = 0; |
201 | } else { | 201 | // } else { |
202 | mCommitQueueTimer.start(); | 202 | // mCommitQueueTimer.start(); |
203 | } | 203 | // } |
204 | } | 204 | } |
205 | 205 | ||
206 | static void waitForDrained(KAsync::Future<void> &f, MessageQueue &queue) | 206 | static void waitForDrained(KAsync::Future<void> &f, MessageQueue &queue) |