summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ingen/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp
index 7fd4545b..176bba29 100644
--- a/src/ingen/main.cpp
+++ b/src/ingen/main.cpp
@@ -126,8 +126,15 @@ main(int argc, char** argv)
engine_module = Ingen::Shared::load_module("ingen_engine");
engine_http_module = Ingen::Shared::load_module("ingen_engine_http");
engine_osc_module = Ingen::Shared::load_module("ingen_engine_osc");
- engine_queued_module = Ingen::Shared::load_module("ingen_engine_queued");
engine_jack_module = Ingen::Shared::load_module("ingen_engine_jack");
+ engine_queued_module = Ingen::Shared::load_module("ingen_engine_queued");
+
+ if (!engine_queued_module) {
+ cerr << "ERROR: Unable to load (queued) engine interface module" << endl;
+ Ingen::Shared::destroy_world();
+ return 1;
+ }
+
if (engine_module) {
Engine* (*new_engine)(Ingen::Shared::World* world) = NULL;
if (engine_module->get_symbol("new_engine", (void*&)new_engine)) {