aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2012-06-28 15:52:45 +0200
committerMatt Corallo <matt@bluematt.me>2012-06-28 15:52:45 +0200
commit18c4beb05b494f30b16a17b834c23ec8774749b2 (patch)
treecc405a7fc106dd50b0034a4bde09504fc6379876 /src/bitcoinrpc.cpp
parente75acc006e8bc5c44d1d6e6c3b027fe28d8c743b (diff)
Revert "*Always* send a shutdown signal to enable custom shutdown actions"
This reverts commit 896899e0d66e25f6549a92749d237c8a87b12f08.
Diffstat (limited to 'src/bitcoinrpc.cpp')
-rw-r--r--src/bitcoinrpc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp
index 8d78b8b00a..1874493391 100644
--- a/src/bitcoinrpc.cpp
+++ b/src/bitcoinrpc.cpp
@@ -2905,7 +2905,8 @@ void ThreadRPCServer2(void* parg)
}
vnThreadsRunning[THREAD_RPCLISTENER]--;
- io_service.run();
+ while (!fShutdown)
+ io_service.run_one();
vnThreadsRunning[THREAD_RPCLISTENER]++;
}