summaryrefslogtreecommitdiffstats
path: root/common/listener.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-05 15:22:10 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-07-05 15:22:10 +0200
commitb4df9eb5f1f4a0ac2b1272fc34d4b8aad473008b (patch)
tree9abf529061432031afefd6a8bfa821a9779f763d /common/listener.cpp
parentf9379318d801df204cc50385c5eca1f28e91755e (diff)
downloadsink-b4df9eb5f1f4a0ac2b1272fc34d4b8aad473008b.tar.gz
sink-b4df9eb5f1f4a0ac2b1272fc34d4b8aad473008b.zip
Prepare for making the resource status available
Diffstat (limited to 'common/listener.cpp')
-rw-r--r--common/listener.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/listener.cpp b/common/listener.cpp
index 84afe16..d2fc510 100644
--- a/common/listener.cpp
+++ b/common/listener.cpp
@@ -330,7 +330,7 @@ qint64 Listener::lowerBoundRevision()
330void Listener::quit() 330void Listener::quit()
331{ 331{
332 // Broadcast shutdown notifications to open clients, so they don't try to restart the resource 332 // Broadcast shutdown notifications to open clients, so they don't try to restart the resource
333 auto command = Sink::Commands::CreateNotification(m_fbb, Sink::Commands::NotificationType::NotificationType_Shutdown); 333 auto command = Sink::Commands::CreateNotification(m_fbb, Sink::Notification::Shutdown);
334 Sink::Commands::FinishNotificationBuffer(m_fbb, command); 334 Sink::Commands::FinishNotificationBuffer(m_fbb, command);
335 for (Client &client : m_connections) { 335 for (Client &client : m_connections) {
336 if (client.socket && client.socket->isOpen()) { 336 if (client.socket && client.socket->isOpen()) {
@@ -418,7 +418,7 @@ void Listener::notify(const Sink::Notification &notification)
418 auto messageString = m_fbb.CreateString(notification.message.toUtf8().constData(), notification.message.toUtf8().size()); 418 auto messageString = m_fbb.CreateString(notification.message.toUtf8().constData(), notification.message.toUtf8().size());
419 auto idString = m_fbb.CreateString(notification.id.constData(), notification.id.size()); 419 auto idString = m_fbb.CreateString(notification.id.constData(), notification.id.size());
420 Sink::Commands::NotificationBuilder builder(m_fbb); 420 Sink::Commands::NotificationBuilder builder(m_fbb);
421 builder.add_type(static_cast<Sink::Commands::NotificationType>(notification.type)); 421 builder.add_type(notification.type);
422 builder.add_code(notification.code); 422 builder.add_code(notification.code);
423 builder.add_identifier(idString); 423 builder.add_identifier(idString);
424 builder.add_message(messageString); 424 builder.add_message(messageString);