diff options
Diffstat (limited to 'src/server/NodeFactory.cpp')
-rw-r--r-- | src/server/NodeFactory.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/server/NodeFactory.cpp b/src/server/NodeFactory.cpp index 616a1b35..1544b98b 100644 --- a/src/server/NodeFactory.cpp +++ b/src/server/NodeFactory.cpp @@ -57,9 +57,11 @@ NodeFactory::~NodeFactory() const NodeFactory::Plugins& NodeFactory::plugins() { + ThreadManager::assert_thread(THREAD_PRE_PROCESS); if (!_has_loaded) { // TODO: Plugin list refreshing - load_plugins(); + load_lv2_plugins(); + _has_loaded = true; } return _plugins; } @@ -73,22 +75,6 @@ NodeFactory::plugin(const Raul::URI& uri) } void -NodeFactory::load_plugins() -{ - ThreadManager::assert_thread(THREAD_PRE_PROCESS); - - // Only load if we havn't already, so every client connecting doesn't cause - // this (expensive!) stuff to happen. Not the best solution - would be nice - // if clients could refresh plugins list for whatever reason :/ - if (!_has_loaded) { - _plugins.clear(); - load_internal_plugins(); - load_lv2_plugins(); - _has_loaded = true; - } -} - -void NodeFactory::load_internal_plugins() { Ingen::URIs& uris = _world->uris(); |