From 77f45891e9948abe0c689210f488ae9347b725ad Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 14 Mar 2008 01:26:14 +0000 Subject: Exit clean on ctrl+c when running engine only. git-svn-id: http://svn.drobilla.net/lad/ingen@1165 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/OSCEngineReceiver.cpp | 1 + src/libs/engine/events/SetMetadataEvent.hpp | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/libs/engine') diff --git a/src/libs/engine/OSCEngineReceiver.cpp b/src/libs/engine/OSCEngineReceiver.cpp index 64bc66ec..20971e5a 100644 --- a/src/libs/engine/OSCEngineReceiver.cpp +++ b/src/libs/engine/OSCEngineReceiver.cpp @@ -157,6 +157,7 @@ void OSCEngineReceiver::deactivate() { cout << "[OSCEngineReceiver] Stopped OSC listening thread" << endl; + _receive_thread->stop(); QueuedEventSource::deactivate(); } diff --git a/src/libs/engine/events/SetMetadataEvent.hpp b/src/libs/engine/events/SetMetadataEvent.hpp index 1d6a913e..457d3052 100644 --- a/src/libs/engine/events/SetMetadataEvent.hpp +++ b/src/libs/engine/events/SetMetadataEvent.hpp @@ -36,7 +36,12 @@ class GraphObjectImpl; class SetMetadataEvent : public QueuedEvent { public: - SetMetadataEvent(Engine& engine, SharedPtr responder, SampleCount timestamp, const string& path, const string& key, const Raul::Atom& value); + SetMetadataEvent(Engine& engine, + SharedPtr responder, + SampleCount timestamp, + const string& path, + const string& key, + const Raul::Atom& value); void pre_process(); void execute(ProcessContext& context); -- cgit v1.2.1