summaryrefslogtreecommitdiffstats
path: root/src/server/events/Get.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/events/Get.cpp')
-rw-r--r--src/server/events/Get.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp
index 7e140ae4..ac8db196 100644
--- a/src/server/events/Get.cpp
+++ b/src/server/events/Get.cpp
@@ -77,18 +77,17 @@ Get::post_process()
}
} else if (!_object && !_plugin) {
respond(NOT_FOUND);
- } else if (_request_client) {
- respond(SUCCESS);
- if (_request_client) {
- if (_object) {
- ObjectSender::send_object(_request_client, _object, true);
- } else if (_plugin) {
- _request_client->put(_uri, _plugin->properties());
- }
- }
- } else {
+ } else if (!_request_client) {
respond(CLIENT_NOT_FOUND);
}
+
+ respond(SUCCESS);
+
+ if (_object) {
+ ObjectSender::send_object(_request_client, _object, true);
+ } else if (_plugin) {
+ _request_client->put(_uri, _plugin->properties());
+ }
_lock.release();
}