diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-05 15:22:10 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-05 15:22:10 +0200 |
commit | b4df9eb5f1f4a0ac2b1272fc34d4b8aad473008b (patch) | |
tree | 9abf529061432031afefd6a8bfa821a9779f763d /common/listener.cpp | |
parent | f9379318d801df204cc50385c5eca1f28e91755e (diff) | |
download | sink-b4df9eb5f1f4a0ac2b1272fc34d4b8aad473008b.tar.gz sink-b4df9eb5f1f4a0ac2b1272fc34d4b8aad473008b.zip |
Prepare for making the resource status available
Diffstat (limited to 'common/listener.cpp')
-rw-r--r-- | common/listener.cpp | 4 |
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() | |||
330 | void Listener::quit() | 330 | void 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 ¬ification) | |||
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); |