summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-02-02 18:44:27 +0000
committerDavid Robillard <d@drobilla.net>2014-02-02 18:44:27 +0000
commit9de25ab8525edac98187221815fa2867687b26f0 (patch)
tree875bfc8f30e0d0505fd8716a012597ed6e0da795 /src/server
parentdb9c2f21eaf8952cf17a06db508879d61e6d007f (diff)
downloadingen-9de25ab8525edac98187221815fa2867687b26f0.tar.gz
ingen-9de25ab8525edac98187221815fa2867687b26f0.tar.bz2
ingen-9de25ab8525edac98187221815fa2867687b26f0.zip
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
Diffstat (limited to 'src/server')
-rw-r--r--src/server/Event.hpp4
-rw-r--r--src/server/EventWriter.cpp2
2 files changed, 3 insertions, 3 deletions
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)
{
}