From 6dfca027bb8981322b6d2671d687b1e970a4f6f1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Apr 2012 01:40:39 +0000 Subject: Don't send responses for ID -1. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4284 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/AtomReader.cpp | 1 - src/shared/AtomWriter.cpp | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.1