summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-07-29 16:58:35 +0000
committerDavid Robillard <d@drobilla.net>2008-07-29 16:58:35 +0000
commit48a23e68b6eb6a23a4bd2e0a1fdfef339eaa7533 (patch)
tree9526b6a89c4ecab82fdcb8592fe58f3a749d2347 /src/libs
parent1bcac68c24eeca5fba730a9dc48ac09eee9ac76b (diff)
downloadingen-48a23e68b6eb6a23a4bd2e0a1fdfef339eaa7533.tar.gz
ingen-48a23e68b6eb6a23a4bd2e0a1fdfef339eaa7533.tar.bz2
ingen-48a23e68b6eb6a23a4bd2e0a1fdfef339eaa7533.zip
Fix connecting via OSC.
git-svn-id: http://svn.drobilla.net/lad/ingen@1304 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/engine/Engine.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libs/engine/Engine.cpp b/src/libs/engine/Engine.cpp
index 6b98566d..f0950844 100644
--- a/src/libs/engine/Engine.cpp
+++ b/src/libs/engine/Engine.cpp
@@ -166,11 +166,13 @@ Engine::start_jack_driver()
void
Engine::start_osc_driver(int port)
{
- if ( ! _event_source)
- _event_source = SharedPtr<EventSource>(new OSCEngineReceiver(
- *this, pre_processor_queue_size, port));
- else
- cerr << "[Engine::start_osc_driver] Event source already running" << endl;
+ if (_event_source) {
+ cerr << "WARNING: Replacing event source" << endl;
+ _event_source.reset();
+ }
+
+ _event_source = SharedPtr<EventSource>(new OSCEngineReceiver(
+ *this, pre_processor_queue_size, port));
}