From 47b4442c585a25b2e4b857f2d9e3ab371d942c19 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 18 Jan 2015 10:51:34 +0100 Subject: Use jobs to track progress of write commands. --- synchronizer/listener.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'synchronizer') diff --git a/synchronizer/listener.cpp b/synchronizer/listener.cpp index dc0d9dd..a84623d 100644 --- a/synchronizer/listener.cpp +++ b/synchronizer/listener.cpp @@ -209,7 +209,10 @@ void Listener::processCommand(int commandId, uint messageId, Client &client, uin case Akonadi2::Commands::ModifyEntityCommand: case Akonadi2::Commands::CreateEntityCommand: log(QString("\tCommand id %1 of type %2 from %3").arg(messageId).arg(commandId).arg(client.name)); - m_resource->processCommand(commandId, client.commandBuffer, size, m_pipeline); + loadResource(); + if (m_resource) { + m_resource->processCommand(commandId, client.commandBuffer, size, m_pipeline); + } break; default: if (commandId > Akonadi2::Commands::CustomCommand) { -- cgit v1.2.3