mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
Merge pull request #10295 from Icinga/do-not-write-new-messages-on-shutdown
JsonRpcConnection: don't write new messages on shutdown
This commit is contained in:
commit
7defb0c942
@ -149,6 +149,10 @@ void JsonRpcConnection::WriteOutgoingMessages(boost::asio::yield_context yc)
|
||||
if (!queue.empty()) {
|
||||
try {
|
||||
for (auto& message : queue) {
|
||||
if (m_ShuttingDown) {
|
||||
break;
|
||||
}
|
||||
|
||||
size_t bytesSent = JsonRpc::SendRawMessage(m_Stream, message, yc);
|
||||
|
||||
if (m_Endpoint) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user