summaryrefslogtreecommitdiffstats
path: root/src/server/Event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Event.cpp')
-rw-r--r--src/server/Event.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/server/Event.cpp b/src/server/Event.cpp
index 76932550..95d0d052 100644
--- a/src/server/Event.cpp
+++ b/src/server/Event.cpp
@@ -63,18 +63,10 @@ Event::post_process()
}
void
-Event::respond_ok()
+Event::respond(Status status)
{
if (_request_client) {
- _request_client->response_ok(_request_id);
- }
-}
-
-void
-Event::respond_error(const std::string& msg)
-{
- if (_request_client) {
- _request_client->response_error(_request_id, msg);
+ _request_client->response(_request_id, status);
}
}