aboutsummaryrefslogtreecommitdiff
path: root/src/banman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/banman.cpp')
-rw-r--r--src/banman.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/banman.cpp b/src/banman.cpp
index 2b029198db..87c1bbc89e 100644
--- a/src/banman.cpp
+++ b/src/banman.cpp
@@ -43,16 +43,15 @@ void BanMan::DumpBanlist()
static Mutex dump_mutex;
LOCK(dump_mutex);
+ banmap_t banmap;
{
LOCK(m_cs_banned);
SweepBanned();
if (!BannedSetIsDirty()) return;
+ banmap = m_banned;
}
int64_t n_start = GetTimeMillis();
-
- banmap_t banmap;
- GetBanned(banmap);
if (m_ban_db.Write(banmap)) {
SetBannedSetDirty(false);
}