diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 4cf5e2fa..e3f500d2 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -965,7 +965,7 @@ static string JSONRPCExecBatch(const Array& vReq) void ServiceConnection(AcceptedConnection *conn) { bool fRun = true; - while (fRun) + while (fRun && !ShutdownRequested()) { int nProto = 0; map mapHeaders;