summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-27 01:40:39 +0000
committerDavid Robillard <d@drobilla.net>2012-04-27 01:40:39 +0000
commit6dfca027bb8981322b6d2671d687b1e970a4f6f1 (patch)
treefabbc3282015e55f1c9525304bc7842fe16b1912
parentbabe9d6cf70d43bf63ea684ff65142ae66581db9 (diff)
downloadingen-6dfca027bb8981322b6d2671d687b1e970a4f6f1.tar.gz
ingen-6dfca027bb8981322b6d2671d687b1e970a4f6f1.tar.bz2
ingen-6dfca027bb8981322b6d2671d687b1e970a4f6f1.zip
Don't send responses for ID -1.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4284 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/shared/AtomReader.cpp1
-rw-r--r--src/shared/AtomWriter.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/AtomReader.cpp b/src/shared/AtomReader.cpp
index 343bb23e..a7ea5e68 100644
--- a/src/shared/AtomReader.cpp
+++ b/src/shared/AtomReader.cpp
@@ -115,7 +115,6 @@ AtomReader::write(const LV2_Atom* msg)
get_props(remove, remove_props);
_iface.delta(subject_uri, remove_props, add_props);
-
} else {
Raul::warn << "Unknown object type <"
<< _map.unmap_uri(obj->body.otype)
diff --git a/src/shared/AtomWriter.cpp b/src/shared/AtomWriter.cpp
index 5957cef7..913c85ce 100644
--- a/src/shared/AtomWriter.cpp
+++ b/src/shared/AtomWriter.cpp
@@ -245,6 +245,10 @@ AtomWriter::get(const Raul::URI& uri)
void
AtomWriter::response(int32_t id, Status status)
{
+ if (id == -1) {
+ return;
+ }
+
LV2_Atom_Forge_Frame msg;
lv2_atom_forge_blank(&_forge, &msg, next_id(), _uris.patch_Response);
lv2_atom_forge_property_head(&_forge, _uris.patch_request, 0);