diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/Event.hpp | 4 | ||||
-rw-r--r-- | src/server/EventWriter.cpp | 2 |
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) { } |