From 3fb9b99cca390e8ac5838c03363c46a99396e463 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 4 Dec 2012 23:53:26 +0100 Subject: Allow lengthy block reconnections to be interrupted When the coin database is out of date with the block database, the best block in it is automatically switched to. This reconnection process can take time, so allow it to be interrupted. This also stops block connection as soon as shutdown is requested, leading to a faster shutdown. --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.cpp') diff --git a/src/util.cpp b/src/util.cpp index bd8ad8acd..3cbc6b196 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -64,7 +64,7 @@ bool fDebug = false; bool fDebugNet = false; bool fPrintToConsole = false; bool fPrintToDebugger = false; -bool fRequestShutdown = false; +volatile bool fRequestShutdown = false; bool fShutdown = false; bool fDaemon = false; bool fServer = false; -- cgit v1.2.3