summaryrefslogtreecommitdiffstats
path: root/src/server/ingen_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/ingen_engine.cpp')
-rw-r--r--src/server/ingen_engine.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/server/ingen_engine.cpp b/src/server/ingen_engine.cpp
index 28659ec6..917e83cf 100644
--- a/src/server/ingen_engine.cpp
+++ b/src/server/ingen_engine.cpp
@@ -18,7 +18,6 @@
#include "ingen/shared/World.hpp"
#include "Engine.hpp"
#include "EventWriter.hpp"
-#include "EventQueue.hpp"
#include "util.hpp"
using namespace Ingen;
@@ -28,11 +27,9 @@ struct IngenEngineModule : public Ingen::Shared::Module {
Server::set_denormal_flags();
SharedPtr<Server::Engine> engine(new Server::Engine(world));
world->set_local_engine(engine);
- SharedPtr<Server::EventQueue> queue(new Server::EventQueue());
- SharedPtr<Server::EventWriter> interface(
- new Server::EventWriter(*engine.get(), *queue.get()));
- world->set_engine(interface);
- engine->add_event_source(queue);
+ if (!world->engine()) {
+ world->set_engine(SharedPtr<Interface>(engine->interface(), NullDeleter<Interface>));
+ }
assert(world->local_engine() == engine);
}
};