From 47412280397d66950abd9582048ce8e465fc2844 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 18 Jan 2017 15:55:28 +0100 Subject: Don't overwrite the first job with the continuation --- common/synchronizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index cfd2c10..d86b027 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp @@ -336,7 +336,7 @@ KAsync::Job Synchronizer::processSyncQueue() enqueueCommand(Sink::Commands::FlushCommand, BufferUtils::extractBuffer(fbb)); } } else if (request.requestType == Synchronizer::SyncRequest::ChangeReplay) { - job = replayNextRevision(); + job = job.then(replayNextRevision()); } else { SinkWarning() << "Unknown request type: " << request.requestType; return KAsync::error(KAsync::Error{"Unknown request type."}); -- cgit v1.2.3