From 9de25ab8525edac98187221815fa2867687b26f0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 2 Feb 2014 18:44:27 +0000 Subject: Disable responses in the usual case where the UI doesn't care. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5333 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/Event.hpp | 4 ++-- src/server/EventWriter.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server') diff --git a/src/server/Event.hpp b/src/server/Event.hpp index 21af45c5..29a20c18 100644 --- a/src/server/Event.hpp +++ b/src/server/Event.hpp @@ -94,7 +94,7 @@ protected: explicit Event(Engine& engine) : _engine(engine) , _next(NULL) - , _request_id(-1) + , _request_id(0) , _time(0) , _status(Status::NOT_PREPARED) {} @@ -116,7 +116,7 @@ protected: /** Respond to the originating client. */ inline Status respond() { - if (_request_client) { + if (_request_client && _request_id) { _request_client->response(_request_id, _status, _err_subject); } return _status; diff --git a/src/server/EventWriter.cpp b/src/server/EventWriter.cpp index 60096d85..8508fab3 100644 --- a/src/server/EventWriter.cpp +++ b/src/server/EventWriter.cpp @@ -27,7 +27,7 @@ namespace Server { EventWriter::EventWriter(Engine& engine) : _engine(engine) - , _request_id(-1) + , _request_id(0) { } -- cgit v1.2.1