summaryrefslogtreecommitdiffstats
path: root/src/server/Event.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Event.hpp')
-rw-r--r--src/server/Event.hpp4
1 files changed, 2 insertions, 2 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;