From b24f01b4644bb4d7c1e58a23acdf1fcaef0698b0 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 23 Jun 2017 17:06:52 +0200 Subject: Ensure revision updates are instantaneous. We could do some event compression with a timer if necessary, but for the time being we'll just flush after every notification. This is necessary so i.e. a mail in the outbox appears immediately as it is created in the resource. --- common/listener.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/listener.cpp b/common/listener.cpp index ec2bedb..c9fd9d3 100644 --- a/common/listener.cpp +++ b/common/listener.cpp @@ -405,6 +405,7 @@ void Listener::updateClientsWithRevision(qint64 revision) SinkTrace() << "Sending revision update for " << client.name << revision; Sink::Commands::write(client.socket, ++m_messageId, Sink::Commands::RevisionUpdateCommand, m_fbb); + client.socket->flush(); } m_fbb.Clear(); } -- cgit v1.2.3