diff options
Diffstat (limited to 'src/server/events/Get.cpp')
-rw-r--r-- | src/server/events/Get.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp index ac8db196..9558c6aa 100644 --- a/src/server/events/Get.cpp +++ b/src/server/events/Get.cpp @@ -79,17 +79,15 @@ Get::post_process() respond(NOT_FOUND); } else if (!_request_client) { respond(CLIENT_NOT_FOUND); + } else { + respond(SUCCESS); + if (_object) { + ObjectSender::send_object(_request_client, _object, true); + } else if (_plugin) { + _request_client->put(_uri, _plugin->properties()); + } + _lock.release(); } - - respond(SUCCESS); - - if (_object) { - ObjectSender::send_object(_request_client, _object, true); - } else if (_plugin) { - _request_client->put(_uri, _plugin->properties()); - } - - _lock.release(); } } // namespace Events |