summaryrefslogtreecommitdiffstats
path: root/src/server/events/Get.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-21 02:51:35 +0000
committerDavid Robillard <d@drobilla.net>2012-12-21 02:51:35 +0000
commit853dee67639d73178f036c192ea5d98d74fb39e3 (patch)
tree3da9bd4792431ae2c8c6153729059b1c23ebd696 /src/server/events/Get.cpp
parentaac9cbc534ab57a5471b121523bd8308e857c228 (diff)
downloadingen-853dee67639d73178f036c192ea5d98d74fb39e3.tar.gz
ingen-853dee67639d73178f036c192ea5d98d74fb39e3.tar.bz2
ingen-853dee67639d73178f036c192ea5d98d74fb39e3.zip
Add Broadcaster::Transfer for scoped recursion-safe reply bundling.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4868 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events/Get.cpp')
-rw-r--r--src/server/events/Get.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp
index 1493f161..949e8c49 100644
--- a/src/server/events/Get.cpp
+++ b/src/server/events/Get.cpp
@@ -129,6 +129,7 @@ send_graph(Interface* client, const GraphImpl* graph)
void
Get::post_process()
{
+ Broadcaster::Transfer t(*_engine.broadcaster());
if (!respond() && _request_client) {
if (_uri == "ingen:plugins") {
_engine.broadcaster()->send_plugins_to(_request_client.get(), _plugins);
@@ -140,7 +141,6 @@ Get::post_process()
uris.ingen_sampleRate,
uris.forge.make(int32_t(_engine.driver()->sample_rate())));
} else if (_object) {
- _request_client->bundle_begin();
const BlockImpl* block = NULL;
const GraphImpl* graph = NULL;
const PortImpl* port = NULL;
@@ -151,7 +151,6 @@ Get::post_process()
} else if ((port = dynamic_cast<const PortImpl*>(_object))) {
send_port(_request_client.get(), port);
}
- _request_client->bundle_end();
} else if (_plugin) {
_request_client->put(_uri, _plugin->properties());
}