Merge pull request #10213 from Icinga/do-not-read-data-on-disconnect

JsonRpcConnection: Don't read any data on shutdown
This commit is contained in:
Alexander Aleksandrovič Klimov 2024-11-07 12:32:02 +01:00 committed by GitHub
commit 9a8620d923
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ void JsonRpcConnection::HandleIncomingMessages(boost::asio::yield_context yc)
{ {
m_Stream->next_layer().SetSeen(&m_Seen); m_Stream->next_layer().SetSeen(&m_Seen);
for (;;) { while (!m_ShuttingDown) {
String message; String message;
try { try {