From 051cfd53fcf328d3c0b564d7a731f0047d285bd5 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sun, 3 Apr 2016 09:11:49 +0200 Subject: [PATCH] don't force library unloading when on-demand-unloading is enabled --- src/multi_library_class_loader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/multi_library_class_loader.cpp b/src/multi_library_class_loader.cpp index 8e4438ac..3a3f8fc1 100644 --- a/src/multi_library_class_loader.cpp +++ b/src/multi_library_class_loader.cpp @@ -80,6 +80,7 @@ void MultiLibraryClassLoader::loadLibrary(const std::string& library_path) void MultiLibraryClassLoader::shutdownAllClassLoaders() { + if (isOnDemandLoadUnloadEnabled()) return; std::vector available_libraries = getRegisteredLibraries(); for(unsigned int c = 0; c < available_libraries.size(); c++) unloadLibrary(available_libraries.at(c));