summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-20 03:48:01 +0000
committerDavid Robillard <d@drobilla.net>2011-05-20 03:48:01 +0000
commit65f4c6021c03eb14084a1e6446185274fec751fe (patch)
treea952e0f3278f1e0af6262cea8fb7e931e0b88ff2 /src/server/events
parent4999a7199470ee751d710cfca2a39b4fdc561a82 (diff)
downloadingen-65f4c6021c03eb14084a1e6446185274fec751fe.tar.gz
ingen-65f4c6021c03eb14084a1e6446185274fec751fe.tar.bz2
ingen-65f4c6021c03eb14084a1e6446185274fec751fe.zip
Fix multiple put replies on port creation.
Include value in initial put response for control ports. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3296 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/SetMetadata.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/server/events/SetMetadata.cpp b/src/server/events/SetMetadata.cpp
index 1812ad91..d9d44cc0 100644
--- a/src/server/events/SetMetadata.cpp
+++ b/src/server/events/SetMetadata.cpp
@@ -346,14 +346,15 @@ SetMetadata::post_process()
switch (_error) {
case NO_ERROR:
- if (_create_event)
+ if (_create_event) {
_create_event->post_process();
- else
+ } else {
_request->respond_ok();
- if (_create)
- _engine.broadcaster()->put(_subject, _properties, _context);
- else
- _engine.broadcaster()->delta(_subject, _remove, _properties);
+ if (_create)
+ _engine.broadcaster()->put(_subject, _properties, _context);
+ else
+ _engine.broadcaster()->delta(_subject, _remove, _properties);
+ }
break;
case NOT_FOUND:
_request->respond_error((boost::format(