summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/OSCEngineReceiver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-14 06:27:29 +0000
committerDavid Robillard <d@drobilla.net>2008-08-14 06:27:29 +0000
commit46d363c84afd6306a0fa7fe60b77808087047b44 (patch)
tree0972a00760874f37e05b33cdae776a08f42bdb86 /src/libs/engine/OSCEngineReceiver.cpp
parent576774c657d99c7c9954eefff27b886694913022 (diff)
downloadingen-46d363c84afd6306a0fa7fe60b77808087047b44.tar.gz
ingen-46d363c84afd6306a0fa7fe60b77808087047b44.tar.bz2
ingen-46d363c84afd6306a0fa7fe60b77808087047b44.zip
Don't present (or even load widgets from XML) connection window until some time has passed (i.e. don't show it at all if the connection happens fast enough).
git-svn-id: http://svn.drobilla.net/lad/ingen@1375 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/OSCEngineReceiver.cpp')
-rw-r--r--src/libs/engine/OSCEngineReceiver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/engine/OSCEngineReceiver.cpp b/src/libs/engine/OSCEngineReceiver.cpp
index 120b86b4..8fd65e85 100644
--- a/src/libs/engine/OSCEngineReceiver.cpp
+++ b/src/libs/engine/OSCEngineReceiver.cpp
@@ -257,7 +257,9 @@ OSCEngineReceiver::error_cb(int num, const char* msg, const char* path)
int
OSCEngineReceiver::_ping_cb(const char* path, const char* types, lo_arg** argv, int argc, lo_message msg)
{
- _responder->respond_ok();
+ const lo_address addr = lo_message_get_source(msg);
+ if (lo_send(addr, "/ingen/ok", "i", argv[0]->i) < 0)
+ cerr << "WARNING: Unable to send response: " << lo_address_errstr(addr) << endl;
return 0;
}