aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpcserver.cpp')
-rw-r--r--src/rpcserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp
index 2c0cdd345f..7ad73836a7 100644
--- a/src/rpcserver.cpp
+++ b/src/rpcserver.cpp
@@ -732,7 +732,7 @@ static string JSONRPCExecBatch(const Array& vReq)
void ServiceConnection(AcceptedConnection *conn)
{
bool fRun = true;
- while (fRun)
+ while (fRun && !ShutdownRequested())
{
int nProto = 0;
map<string, string> mapHeaders;