diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-23 17:06:52 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-23 17:06:52 +0200 |
commit | b24f01b4644bb4d7c1e58a23acdf1fcaef0698b0 (patch) | |
tree | b62d24933c403b07871e4afb0d870ba435049eb9 /common | |
parent | 5cabc167e646e9d80b70d6617a3f031d77453979 (diff) | |
download | sink-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')
-rw-r--r-- | common/listener.cpp | 1 |
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 | } |