diff options
author | David Robillard <d@drobilla.net> | 2008-07-29 16:58:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-07-29 16:58:35 +0000 |
commit | 48a23e68b6eb6a23a4bd2e0a1fdfef339eaa7533 (patch) | |
tree | 9526b6a89c4ecab82fdcb8592fe58f3a749d2347 /src/libs | |
parent | 1bcac68c24eeca5fba730a9dc48ac09eee9ac76b (diff) | |
download | ingen-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.cpp | 12 |
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)); } |