diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 072c14e6b..11fd94773 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -45,9 +45,6 @@ DatabasePager::DatabasePager() DatabasePager::~DatabasePager() { - // release the frameBlock and _fileRequestListEmptyBlock incase its holding up thread cancelation. - _frameBlock->release(); - _fileRequestListEmptyBlock->release(); //std::cout<<"DatabasePager::~DatabasePager()"<release(); + _fileRequestListEmptyBlock->release(); + // then wait for the the thread to stop running. while(isRunning()) {