From 896899e0d66e25f6549a92749d237c8a87b12f08 Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Sun, 17 Jun 2012 16:21:09 +0200 Subject: *Always* send a shutdown signal to enable custom shutdown actions NOTE: This is required to be sure that we can properly shut down the RPC thread. Signed-off-by: Giel van Schijndel --- src/bitcoinrpc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/bitcoinrpc.cpp') diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 01142ab7c..a35d33e14 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -2884,8 +2884,7 @@ void ThreadRPCServer2(void* parg) } vnThreadsRunning[THREAD_RPCLISTENER]--; - while (!fShutdown) - io_service.run_one(); + io_service.run(); vnThreadsRunning[THREAD_RPCLISTENER]++; // Terminate all outstanding accept-requests -- cgit v1.2.3