summaryrefslogtreecommitdiffstats
path: root/common/listener.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-23 17:06:52 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-06-23 17:06:52 +0200
commitb24f01b4644bb4d7c1e58a23acdf1fcaef0698b0 (patch)
treeb62d24933c403b07871e4afb0d870ba435049eb9 /common/listener.cpp
parent5cabc167e646e9d80b70d6617a3f031d77453979 (diff)
downloadsink-b24f01b4644bb4d7c1e58a23acdf1fcaef0698b0.tar.gz
sink-b24f01b4644bb4d7c1e58a23acdf1fcaef0698b0.zip
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.
Diffstat (limited to 'common/listener.cpp')
-rw-r--r--common/listener.cpp1
1 files changed, 1 insertions, 0 deletions
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)
405 405
406 SinkTrace() << "Sending revision update for " << client.name << revision; 406 SinkTrace() << "Sending revision update for " << client.name << revision;
407 Sink::Commands::write(client.socket, ++m_messageId, Sink::Commands::RevisionUpdateCommand, m_fbb); 407 Sink::Commands::write(client.socket, ++m_messageId, Sink::Commands::RevisionUpdateCommand, m_fbb);
408 client.socket->flush();
408 } 409 }
409 m_fbb.Clear(); 410 m_fbb.Clear();
410} 411}