From 5de0706c120997e2c771789fa0d3187fd3faebbd Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 11 Nov 2014 03:17:06 +0300 Subject: [PATCH] Faster shutdown --- src/bitcoinrpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;