mirror of https://github.com/Icinga/icinga2.git
Merge pull request #10221 from Icinga/Al2Klimov-patch-7
JsonRpcConnection: don't write new messages on shutdown
This commit is contained in:
commit
8f51f54f19
|
@ -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…
Reference in New Issue