Skip to content

Commit 9a8620d

Browse files
authored
Merge pull request #10213 from Icinga/do-not-read-data-on-disconnect
JsonRpcConnection: Don't read any data on shutdown
2 parents 0fde1ef + 1c34610 commit 9a8620d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/remote/jsonrpcconnection.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void JsonRpcConnection::HandleIncomingMessages(boost::asio::yield_context yc)
6262
{
6363
m_Stream->next_layer().SetSeen(&m_Seen);
6464

65-
for (;;) {
65+
while (!m_ShuttingDown) {
6666
String message;
6767

6868
try {

0 commit comments

Comments
 (0)