From 8d34279ab0e8bb6cfc6d7d8dea6144fd2dd45df7 Mon Sep 17 00:00:00 2001 From: Eric Harding Date: Tue, 2 Jul 2019 16:26:34 -0400 Subject: [PATCH] SP-68 Fix crash on exit by not touching queue on windows. insert_or_replace() is a no-op on windows anyway. --- src/lib/md/SecurityCache.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/md/SecurityCache.cpp b/src/lib/md/SecurityCache.cpp index 160633145..63a181a5d 100644 --- a/src/lib/md/SecurityCache.cpp +++ b/src/lib/md/SecurityCache.cpp @@ -22,6 +22,7 @@ void SecurityCacheImpl::enqueue_update_db(const SecurityPtr& security) { } void SecurityCacheImpl::flush() { + #ifndef _WIN32 if (!update_queue.empty()) { std::vector work; SecurityPtr temp; @@ -33,6 +34,7 @@ void SecurityCacheImpl::flush() { } } } + #endif } //////////////////