diff options
Diffstat (limited to 'include/http_connection.h')
-rw-r--r-- | include/http_connection.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/http_connection.h b/include/http_connection.h index a030d73..04ffa3f 100644 --- a/include/http_connection.h +++ b/include/http_connection.h @@ -113,11 +113,11 @@ namespace crow { CROW_LOG_INFO << "Response: " << this << ' ' << res.code << ' ' << close_connection_; - if (!socket_.is_open()) - return; - auto self = this->shared_from_this(); res.complete_request_handler_ = nullptr; + + if (!socket_.is_open()) + return; static std::unordered_map<int, std::string> statusCodes = { {200, "HTTP/1.1 200 OK\r\n"}, |