From a399e9ccb2348540f5bddf05b4847562ef4101e7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 25 Mar 2018 12:14:46 +0100 Subject: [PATCH] Re-ordered the creating of the DatagbaseThread to avoid startThread being called twice. --- src/osgDB/DatabasePager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 5bd80970f..b2bfcdeff 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -1542,8 +1542,6 @@ void DatabasePager::requestNodeFile(const std::string& fileName, osg::NodePath& if (!_startThreadCalled) { - _startThreadCalled = true; - _done = false; OSG_INFO<<"DatabasePager::startThread()"<getNumOfHttpDatabaseThreadsHint()); } + _startThreadCalled = true; + _done = false; + for(DatabaseThreadList::const_iterator dt_itr = _databaseThreads.begin(); dt_itr != _databaseThreads.end(); ++dt_itr)