aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2014-03-13 17:51:05 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2014-03-24 19:14:51 +0100
commitd138598f63cc980c1333e7c63a95b19e6b279025 (patch)
tree6cb03d8cacb23eca0979e4d3bfab888c4b056780 /src/rpcserver.cpp
parentd3c3210fa376a9c1ce55c537a3f4439202783624 (diff)
downloadbitcoin-d138598f63cc980c1333e7c63a95b19e6b279025.tar.xz
Fix regression tests
Taught bitcoind to close the HTTP connection after it gets a 'stop' command, to make it easier for the regression tests to cleanly stop. Move bitcoinrpc files to correct location. Tidied up the python-based regression tests.
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;