aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-10-19 17:16:51 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-10-19 17:16:51 +0000
commit5cbf75324d1509a1262b65c5073314a4da3f6d77 (patch)
treefcaaca0e6f71362c3968735b29ea8e2e7fff9dbb /db.h
parent2fad3d34b7b9bf03d56970cb36d9a091609b10c8 (diff)
downloadbitcoin-5cbf75324d1509a1262b65c5073314a4da3f6d77.tar.xz
Gavin's TEST network as -testnet switch, misc fixes
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@168 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'db.h')
-rw-r--r--db.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/db.h b/db.h
index dac277a016..385b898bc8 100644
--- a/db.h
+++ b/db.h
@@ -455,7 +455,8 @@ public:
~CReserveKey()
{
- ReturnKey();
+ if (!fShutdown)
+ ReturnKey();
}
vector<unsigned char> GetReservedKey()