aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
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()