SP-68 Fix crash on exit by not touching queue on windows. insert_or_replace() is a no-op on windows anyway.

This commit is contained in:
Eric Harding committed 2019-07-02 16:26:34 -04:00
1 parent a06df5099a
commit 8d34279ab0
1 file changed
+2
+2
View File
@@ -22,6 +22,7 @@ void SecurityCacheImpl::enqueue_update_db(const SecurityPtr& security) {
}
void SecurityCacheImpl::flush() {
#ifndef _WIN32
if (!update_queue.empty()) {
std::vector<SecurityPtr> work;
SecurityPtr temp;
@@ -33,6 +34,7 @@ void SecurityCacheImpl::flush() {
}
}
}
#endif
}
//////////////////